Added new logic to expand currently open tab,
after clicking the refresh button.
Issue-ID: SDC-2886
Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
Change-Id: Ib9d1c7cbf2ca2dd9df22f7f74ffda64144c06047
private async refreshDistributions() {
await this.initDistributions(this.componentUuid);
+ this.openExpanded();
+ }
+
+ private openExpanded() {
+ const self = this;
+ this.distributions.forEach((row) => {
+ if (self.expanded[row.distributionID]) {
+ self.expandRow(row, false);
+ }
+ })
}
private updateFilter(event) {
await this.distributionService.initDistributionsStatusForDistributionID(row.distributionID);
}
this.table.rowDetail.toggleExpandRow(row);
+ this.expanded[row.distributionID] = !expanded;
}
}