From d289108897f3baf5bc51092c4f55309bdd90f8d9 Mon Sep 17 00:00:00 2001 From: atif husain Date: Wed, 2 Oct 2019 18:03:57 +1000 Subject: Changes for new service category Introduced new service category, Partner Domain Service Added logic to disable composition for Partner Domain Service category Issue-ID: SDC-2382 Change-Id: I6ed135733c6f05914e102c037ebe9057ad731e75 Signed-off-by: Atif Husain --- catalog-ui/src/app/utils/menu-handler.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'catalog-ui/src/app/utils') diff --git a/catalog-ui/src/app/utils/menu-handler.ts b/catalog-ui/src/app/utils/menu-handler.ts index 4c25a025da..eaef63fcc7 100644 --- a/catalog-ui/src/app/utils/menu-handler.ts +++ b/catalog-ui/src/app/utils/menu-handler.ts @@ -32,6 +32,7 @@ export class MenuItem { action:string; params:any; isDisabled:boolean; + disabledCategory:boolean; disabledRoles:Array; blockedForTypes:Array; // This item will not be shown for specific components types. @@ -43,13 +44,14 @@ export class MenuItem { url:string; // Data added to menu item, in case the function need to use it, example: for function "changeLifecycleState", I need to pass also the state "CHECKOUT" that I want the state to change to. - constructor(text:string, callback:(...args:Array) => ng.IPromise, state:string, action:string, params?:any, blockedForTypes?:Array) { + constructor(text:string, callback:(...args:Array) => ng.IPromise, state:string, action:string, params?:any, blockedForTypes?:Array, disabledCategory?:boolean) { this.text = text; this.callback = callback; this.state = state; this.action = action; this.params = params; this.blockedForTypes = blockedForTypes; + this.disabledCategory = disabledCategory; } } -- cgit 1.2.3-korg