+import { HttpParams } from '@angular/common/http';
import {
AfterViewInit,
+ ChangeDetectorRef,
Component,
Input,
OnChanges,
public actionLabels: ActionLabelsI18n,
private authStorageService: AuthStorageService,
private daemonService: DaemonService,
- private notificationService: NotificationService
+ private notificationService: NotificationService,
+ private cdRef: ChangeDetectorRef
) {}
ngOnInit() {
this.columns = this.columns.filter((col: any) => {
return !this.hiddenColumns.includes(col.prop);
});
+
+ setTimeout(() => {
+ this.cdRef.detectChanges();
+ }, 1000);
}
ngOnChanges() {
});
}
getServices(context: CdTableFetchDataContext) {
- this.serviceSub = this.cephServiceService.list(this.serviceName).subscribe(
- (services: CephServiceSpec[]) => {
- this.services = services;
- },
- () => {
- this.services = [];
- context.error();
- }
- );
+ this.serviceSub = this.cephServiceService
+ .list(new HttpParams({ fromObject: { limit: -1, offset: 0 } }), this.serviceName)
+ .observable.subscribe(
+ (services: CephServiceSpec[]) => {
+ this.services = services;
+ },
+ () => {
+ this.services = [];
+ context.error();
+ }
+ );
}
trackByFn(_index: any, item: any) {