summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/pages
diff options
context:
space:
mode:
authorKrupaNagabhushan <krupa.nagabhushan@est.tech>2022-06-01 18:58:16 +0100
committerMichael Morris <michael.morris@est.tech>2022-06-07 09:10:07 +0000
commit6637ee3404312201401ba1edb6efadb011977aa7 (patch)
tree44cb3d75caf097ef77aa619e054adfabecb2dad3 /catalog-ui/src/app/ng2/pages
parenta80da69b9e95a6cbdbe50251c37c9dcc50650e4c (diff)
Fix instance req and capabilities not updating
Issue-ID: SDC-4030 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: I02c61e306087be24fb63b64b6a9c2fa27d52c0e4
Diffstat (limited to 'catalog-ui/src/app/ng2/pages')
-rw-r--r--catalog-ui/src/app/ng2/pages/composition/panel/panel-tabs/req-capabilities-tab/req-capabilities-tab.component.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/catalog-ui/src/app/ng2/pages/composition/panel/panel-tabs/req-capabilities-tab/req-capabilities-tab.component.ts b/catalog-ui/src/app/ng2/pages/composition/panel/panel-tabs/req-capabilities-tab/req-capabilities-tab.component.ts
index 7bb88c7f59..744e56a797 100644
--- a/catalog-ui/src/app/ng2/pages/composition/panel/panel-tabs/req-capabilities-tab/req-capabilities-tab.component.ts
+++ b/catalog-ui/src/app/ng2/pages/composition/panel/panel-tabs/req-capabilities-tab/req-capabilities-tab.component.ts
@@ -144,6 +144,10 @@ export class ReqAndCapabilitiesTabComponent implements OnInit, OnDestroy {
// if instance selected, we take the requirement and capabilities of the instance - always exist because we load them with the graph
if (this.component instanceof FullComponentInstance) {
+ const selectedComponentInstance = this.compositionService.getComponentInstances()
+ .find(componentInstance => componentInstance.uniqueId == this.component.uniqueId);
+ this.component.capabilities = selectedComponentInstance.capabilities;
+ this.component.requirements = selectedComponentInstance.requirements;
this.store.dispatch(new TogglePanelLoadingAction({isLoading: false}));
this.setScopeCapabilitiesRequirements(this.component.capabilities, this.component.requirements);
if (this.component.originType === 'VF') {