aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui
diff options
context:
space:
mode:
authork.kedron <k.kedron@partner.samsung.com>2020-04-08 18:00:11 +0200
committerOfir Sonsino <ofir.sonsino@intl.att.com>2020-04-16 15:43:54 +0000
commitbb8a61b60e9b80b1dd1e137533c48fb569b89f9a (patch)
tree82fd5285b7d5da679a2970841d8561142d0c394f /catalog-ui
parent56031c95f53813bfbcfd9f08738644ab59cbfbb5 (diff)
Improved UX in the distribution component
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
Diffstat (limited to 'catalog-ui')
-rw-r--r--catalog-ui/src/app/ng2/pages/workspace/disribution/distribution.component.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/catalog-ui/src/app/ng2/pages/workspace/disribution/distribution.component.ts b/catalog-ui/src/app/ng2/pages/workspace/disribution/distribution.component.ts
index ca1b6292d3..eb55fa1de7 100644
--- a/catalog-ui/src/app/ng2/pages/workspace/disribution/distribution.component.ts
+++ b/catalog-ui/src/app/ng2/pages/workspace/disribution/distribution.component.ts
@@ -87,6 +87,16 @@ export class DistributionComponent implements OnInit {
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) {
@@ -113,5 +123,6 @@ export class DistributionComponent implements OnInit {
await this.distributionService.initDistributionsStatusForDistributionID(row.distributionID);
}
this.table.rowDetail.toggleExpandRow(row);
+ this.expanded[row.distributionID] = !expanded;
}
}