From 30e728d280b77193500a7f0941db336ee60b80a6 Mon Sep 17 00:00:00 2001 From: Idan Amit Date: Thu, 18 Jan 2018 19:07:38 +0200 Subject: Update designer configuraiton file Updated the designer configuration file to support the new display options Made sure that the old code still works Change-Id: Ia63cb89b0f8cb92fc86e0804afe7e2c2caea0541 Issue-ID: SDC-938 Signed-off-by: Idan Amit --- catalog-ui/src/app/ng2/components/layout/top-nav/top-nav.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'catalog-ui/src/app/ng2/components') diff --git a/catalog-ui/src/app/ng2/components/layout/top-nav/top-nav.component.ts b/catalog-ui/src/app/ng2/components/layout/top-nav/top-nav.component.ts index 846b84c69f..632b2be4cc 100644 --- a/catalog-ui/src/app/ng2/components/layout/top-nav/top-nav.component.ts +++ b/catalog-ui/src/app/ng2/components/layout/top-nav/top-nav.component.ts @@ -122,7 +122,9 @@ export class TopNavComponent { }); _.each(DesignersConfiguration.designers, (designer: Designer) => { - tmpArray.push(new MenuItem(designer.displayName, null, "designers", "goToState", {path: designer.designerStateUrl}, null)); + if (designer.designerDisplayOptions["top"]) { + tmpArray.push(new MenuItem(designer.designerDisplayOptions["top"].displayName, null, "designers", "goToState", {path: designer.designerStateUrl}, null)); + } }) } -- cgit 1.2.3-korg