summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src')
-rw-r--r--catalog-ui/src/app/models/designers-config.ts10
-rw-r--r--catalog-ui/src/app/ng2/components/layout/top-nav/top-nav.component.ts4
2 files changed, 10 insertions, 4 deletions
diff --git a/catalog-ui/src/app/models/designers-config.ts b/catalog-ui/src/app/models/designers-config.ts
index c784be2707..c218c89e7a 100644
--- a/catalog-ui/src/app/models/designers-config.ts
+++ b/catalog-ui/src/app/models/designers-config.ts
@@ -1,13 +1,17 @@
export class Designer {
- displayName: string;
+ designerId: string;
designerHost: string;
designerPort: number;
designerPath: string;
designerStateUrl: string;
designerProtocol: string;
- designerButtonLocation: Array<string>;
- designerTabPresentation: Array<string>;
+ designerDisplayOptions: Map<string, DesignerDisplayOptions>;
+}
+
+export class DesignerDisplayOptions {
+ displayName: string;
+ validResourceTypes: Array<string>;
}
export type Designers = Array<Designer>;
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));
+ }
})
}