summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/src/app/shared/services/cd-table-server-side.service.ts
blob: 56bf807a6c5f7d763c5c86fc008ab268d7283f9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { HttpResponse } from '@angular/common/http';
import { Injectable } from '@angular/core';

@Injectable({
  providedIn: 'root'
})
export class CdTableServerSideService {
  /* tslint:disable:no-empty */
  constructor() {}

  static getCount(resp: HttpResponse<any>): number {
    return Number(resp.headers?.get('X-Total-Count'));
  }
}