summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/pages
diff options
context:
space:
mode:
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') {