-import { AfterViewInit, Component, EventEmitter, Output, ViewChild } from '@angular/core';
+import {
+ AfterViewInit,
+ ChangeDetectorRef,
+ Component,
+ EventEmitter,
+ Output,
+ ViewChild
+} from '@angular/core';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import { TableColumnProp } from '@swimlane/ngx-datatable';
hostname: string;
deviceType: string;
+ diskType: string;
formGroup: CdFormGroup;
action: string;
constructor(
private formBuilder: CdFormBuilder,
+ private cdRef: ChangeDetectorRef,
public activeModal: NgbActiveModal,
public actionLabels: ActionLabelsI18n,
public wizardStepService: WizardStepsService
this.capacity = _.sumBy(this.filteredDevices, 'sys_api.size');
this.event = event;
}
+ this.cdRef.detectChanges();
}
onSubmit() {