Skip to content

Commit

Permalink
Remove navigation config flag
Browse files Browse the repository at this point in the history
ref TryGhost#4535

- don't need this any more :)
  • Loading branch information
ErisDS committed Feb 25, 2015
1 parent f489cb1 commit 70a200d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions core/client/controllers/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ var SettingsController = Ember.Controller.extend({
showTags: Ember.computed('session.user.name', function () {
return this.get('session.user.isAuthor') ? false : true;
}),
showNavigation: Ember.computed('session.user.name', 'config.navigationUI', function () {
return this.get('session.user.isAuthor') || this.get('session.user.isEditor') || !this.get('config.navigationUI') ? false : true;
showNavigation: Ember.computed('session.user.name', function () {
return this.get('session.user.isAuthor') || this.get('session.user.isEditor') ? false : true;
}),
showCodeInjection: Ember.computed('session.user.name', 'controllers.feature.codeInjectionUI', function () {
return this.get('session.user.isAuthor') || this.get('session.user.isEditor') || !this.get('controllers.feature.codeInjectionUI') ? false : true;
Expand Down
4 changes: 0 additions & 4 deletions core/client/routes/settings/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ var NavigationRoute = AuthenticatedRoute.extend(styleBody, CurrentUserSettings,
classNames: ['settings-view-navigation'],

beforeModel: function () {
if (!this.get('config.navigationUI')) {
return this.transitionTo('settings.general');
}

return this.currentUser().then(this.transitionAuthor());
},

Expand Down
1 change: 0 additions & 1 deletion core/server/api/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ function getValidKeys() {
var validKeys = {
fileStorage: config.fileStorage === false ? false : true,
apps: config.apps === true ? true : false,
navigationUI: config.navigationUI === true ? true : false,
codeInjectionUI: config.codeInjectionUI === true ? true : false,
version: config.ghostVersion,
environment: process.env.NODE_ENV,
Expand Down

0 comments on commit 70a200d

Please sign in to comment.