diff options
author | Arielk <Ariel.Kenan@amdocs.com> | 2019-02-04 17:22:02 +0200 |
---|---|---|
committer | Avi Gaffa <avi.gaffa@amdocs.com> | 2019-02-05 09:30:23 +0000 |
commit | 3d70a51f3650acd71bf86812651f3d5374e28192 (patch) | |
tree | ea8bcaea070f723c860b1c6f46d38f0b01363d12 /catalog-ui/src/app/ng2/pages/interface-operation/interface-operation.page.component.ts | |
parent | 54ea496b9fe6296b9a92c59f52aedc2bbf64504d (diff) |
Edit op crashes for existing WF
Change-Id: I2901820a46d8360daa76b46600c67134c63f079a
Issue-ID: SDC-2084
Signed-off-by: Arielk <Ariel.Kenan@amdocs.com>
Diffstat (limited to 'catalog-ui/src/app/ng2/pages/interface-operation/interface-operation.page.component.ts')
-rw-r--r-- | catalog-ui/src/app/ng2/pages/interface-operation/interface-operation.page.component.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/catalog-ui/src/app/ng2/pages/interface-operation/interface-operation.page.component.ts b/catalog-ui/src/app/ng2/pages/interface-operation/interface-operation.page.component.ts index 70a0e958bb..b22a4bdc83 100644 --- a/catalog-ui/src/app/ng2/pages/interface-operation/interface-operation.page.component.ts +++ b/catalog-ui/src/app/ng2/pages/interface-operation/interface-operation.page.component.ts @@ -111,6 +111,7 @@ export class InterfaceOperationComponent { isLoading: boolean; interfaceTypes:{ [interfaceType: string]: Array<string> }; modalTranslation: ModalTranslation; + workflows: Array<any>; @Input() component: IComponent; @Input() readonly: boolean; @@ -132,16 +133,19 @@ export class InterfaceOperationComponent { ngOnInit(): void { this.isLoading = true; + const workflowSubscription = this.enableWorkflowAssociation ? this.WorkflowServiceNg2.getWorkflows() : Promise.resolve(); Observable.forkJoin( this.ComponentServiceNg2.getInterfaces(this.component), this.ComponentServiceNg2.getComponentInputs(this.component), - this.ComponentServiceNg2.getInterfaceTypes(this.component) + this.ComponentServiceNg2.getInterfaceTypes(this.component), + workflowSubscription ).subscribe((response: Array<any>) => { this.isLoading = false; this.initInterfaces(response[0].interfaces); this.sortInterfaces(); this.inputs = response[1].inputs; this.interfaceTypes = response[2]; + this.workflows = response[3]; }); } @@ -239,6 +243,7 @@ export class InterfaceOperationComponent { }; const input: OperationCreatorInput = { + allWorkflows: this.workflows, inputOperation: operation, interfaces: this.interfaces, inputProperties: this.inputs, @@ -246,7 +251,7 @@ export class InterfaceOperationComponent { readonly: this.readonly, isService: this.component.isService(), interfaceTypes: this.interfaceTypes, - validityChangedCallback: this.enableOrDisableSaveButton + validityChangedCallback: this.enableOrDisableSaveButton, }; const modalConfig: IModalConfig = { |