osd: {
id?: number;
- loaded?: boolean;
details?: any;
histogram_failed?: string;
tree?: any;
}
ngOnChanges() {
- this.osd = {
- loaded: false
- };
- if (this.selection) {
+ if (_.get(this, 'osd.id') !== _.get(this, 'selection.id')) {
this.osd = this.selection;
+ }
+
+ if (_.isNumber(_.get(this, 'osd.id'))) {
this.refresh();
}
}
this.osd.histogram_failed = data.histogram;
this.osd.details.histogram = undefined;
}
- this.osd.loaded = true;
});
}
}