diff --git a/app/components/page-header/component.js b/app/components/page-header/component.js index f70633eb3..cf5d56cb5 100644 --- a/app/components/page-header/component.js +++ b/app/components/page-header/component.js @@ -6,6 +6,7 @@ export default Ember.Component.extend({ access: Ember.inject.service(), projects: Ember.inject.service(), project: Ember.computed.alias('projects.current'), + cookies: Ember.inject.service(), currentPath: null, authController: null, @@ -44,6 +45,10 @@ export default Ember.Component.extend({ return this.get('isAdmin') && this.get('store').hasRecordFor('schema','setting'); }.property(), + showCatalog: function() { + return this.get('cookies').get('showcatalog') === 'true'; + }.property(), + actions: { showAbout() { this.sendAction('showAbout'); diff --git a/app/components/page-header/template.hbs b/app/components/page-header/template.hbs index 642bc2c1c..3e8d8f0a1 100644 --- a/app/components/page-header/template.hbs +++ b/app/components/page-header/template.hbs @@ -123,7 +123,9 @@ {{/if}} {{#if isApplicationsTab}} {{#link-to "environments"}} Stacks{{/link-to}} - {{#link-to "applications-tab.catalog" "all"}} Catalog{{/link-to}} + {{#if showCatalog}} + {{#link-to "applications-tab.catalog" "all"}} Catalog{{/link-to}} + {{/if}}