providers: [{ provide: URLBuilderService, useValue: new URLBuilderService(BASE_URL) }]
})
export class HostsComponent extends ListWithDetails implements OnInit {
- @ViewChild(TableComponent, { static: true })
+ @ViewChild(TableComponent)
table: TableComponent;
@ViewChild('servicesTpl', { static: true })
public servicesTpl: TemplateRef<any>;
import { CriticalConfirmationModalComponent } from '../../../../shared/components/critical-confirmation-modal/critical-confirmation-modal.component';
import { FormModalComponent } from '../../../../shared/components/form-modal/form-modal.component';
import { ActionLabelsI18n, URLVerbs } from '../../../../shared/constants/app.constants';
-import { TableComponent } from '../../../../shared/datatable/table/table.component';
import { CellTemplate } from '../../../../shared/enum/cell-template.enum';
import { Icons } from '../../../../shared/enum/icons.enum';
import { NotificationType } from '../../../../shared/enum/notification-type.enum';
markOsdConfirmationTpl: TemplateRef<any>;
@ViewChild('criticalConfirmationTpl', { static: true })
criticalConfirmationTpl: TemplateRef<any>;
- @ViewChild(TableComponent, { static: true })
- tableComponent: TableComponent;
@ViewChild('reweightBodyTpl')
reweightBodyTpl: TemplateRef<any>;
@ViewChild('safeToDestroyBodyTpl')
styleUrls: ['./services.component.scss']
})
export class ServicesComponent extends ListWithDetails implements OnChanges, OnInit {
- @ViewChild(TableComponent)
+ @ViewChild(TableComponent, { static: true })
table: TableComponent;
@Input() hostname: string;
styleUrls: ['./pool-list.component.scss']
})
export class PoolListComponent extends ListWithDetails implements OnInit {
- @ViewChild(TableComponent, { static: true })
+ @ViewChild(TableComponent)
table: TableComponent;
@ViewChild('poolUsageTpl', { static: true })
poolUsageTpl: TemplateRef<any>;