summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/utils
diff options
context:
space:
mode:
authoratif husain <atif.husain@team.telstra.com>2019-10-02 18:03:57 +1000
committerOfir Sonsino <ofir.sonsino@intl.att.com>2019-10-16 10:46:17 +0000
commitd289108897f3baf5bc51092c4f55309bdd90f8d9 (patch)
tree95bd25ec828807e5e4b8f75c8f8ee1d614d1913c /catalog-ui/src/app/utils
parentce2eae1de729f7c66f753857643a6464fbb4013e (diff)
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 <atif.husain@team.telstra.com>
Diffstat (limited to 'catalog-ui/src/app/utils')
-rw-r--r--catalog-ui/src/app/utils/menu-handler.ts4
1 files changed, 3 insertions, 1 deletions
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<string>;
blockedForTypes:Array<string>; // 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<any>) => ng.IPromise<boolean>, state:string, action:string, params?:any, blockedForTypes?:Array<string>) {
+ constructor(text:string, callback:(...args:Array<any>) => ng.IPromise<boolean>, state:string, action:string, params?:any, blockedForTypes?:Array<string>, disabledCategory?:boolean) {
this.text = text;
this.callback = callback;
this.state = state;
this.action = action;
this.params = params;
this.blockedForTypes = blockedForTypes;
+ this.disabledCategory = disabledCategory;
}
}