-import { Component, Input, OnChanges, ViewChild } from '@angular/core';
+import { Component, Input, ViewChild } from '@angular/core';
import { I18n } from '@ngx-translate/i18n-polyfill';
import { TabsetComponent } from 'ngx-bootstrap/tabs';
templateUrl: './pool-details.component.html',
styleUrls: ['./pool-details.component.scss']
})
-export class PoolDetailsComponent implements OnChanges {
+export class PoolDetailsComponent {
cacheTierColumns: Array<CdTableColumn> = [];
- prevSelectionPool: Number = -1;
@Input()
selection: CdTableSelection;
}
];
}
-
- ngOnChanges() {
- if (this.tabsetChild) {
- if (this.prevSelectionPool !== this.selection.first().pool) {
- this.tabsetChild.tabs[0].active = true;
- this.prevSelectionPool = this.selection.first().pool;
- } else {
- return;
- }
- }
- }
}