aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}
}