diff --git a/core/client/app/controllers/feature.js b/core/client/app/controllers/feature.js index 4acc795b30..2e9c829d9a 100644 --- a/core/client/app/controllers/feature.js +++ b/core/client/app/controllers/feature.js @@ -24,10 +24,6 @@ var FeatureController = Ember.Controller.extend(Ember.PromiseProxyMixin, { } return value; - }), - - codeInjectionUI: Ember.computed('config.codeInjectionUI', 'labs.codeInjectionUI', function () { - return this.get('config.codeInjectionUI') || this.get('labs.codeInjectionUI'); }) }); diff --git a/core/client/app/controllers/settings.js b/core/client/app/controllers/settings.js index 5dbd817658..2f2bec5920 100644 --- a/core/client/app/controllers/settings.js +++ b/core/client/app/controllers/settings.js @@ -1,6 +1,5 @@ import Ember from 'ember'; var SettingsController = Ember.Controller.extend({ - needs: ['feature'], showGeneral: Ember.computed('session.user.name', function () { return this.get('session.user.isAuthor') || this.get('session.user.isEditor') ? false : true; @@ -14,8 +13,8 @@ var SettingsController = Ember.Controller.extend({ 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; + showCodeInjection: Ember.computed('session.user.name', function () { + return this.get('session.user.isAuthor') || this.get('session.user.isEditor') ? false : true; }), showLabs: Ember.computed('session.user.name', function () { return this.get('session.user.isAuthor') || this.get('session.user.isEditor') ? false : true; diff --git a/core/client/app/controllers/settings/labs.js b/core/client/app/controllers/settings/labs.js index 8db0e4c5a8..0cfd0062bb 100644 --- a/core/client/app/controllers/settings/labs.js +++ b/core/client/app/controllers/settings/labs.js @@ -23,18 +23,6 @@ var LabsController = Ember.Controller.extend(Ember.Evented, { }); }, - codeUIFlag: Ember.computed.alias('config.codeInjectionUI'), - - useCodeInjectionUI: Ember.computed('controllers.feature.codeInjectionUI', function (key, value) { - // setter - if (arguments.length > 1) { - this.saveLabs('codeInjectionUI', value); - } - - // getter - return this.get('controllers.feature.codeInjectionUI') || false; - }), - actions: { onUpload: function (file) { var self = this, diff --git a/core/client/app/routes/settings/code-injection.js b/core/client/app/routes/settings/code-injection.js index 78bf8c798f..2d1f4f3c1d 100644 --- a/core/client/app/routes/settings/code-injection.js +++ b/core/client/app/routes/settings/code-injection.js @@ -7,24 +7,9 @@ var SettingsCodeInjectionRoute = AuthenticatedRoute.extend(styleBody, loadingInd classNames: ['settings-view-code'], beforeModel: function () { - var feature = this.controllerFor('feature'), - self = this; - - if (!feature) { - this.generateController('feature'); - feature = this.controllerFor('feature'); - } - return this.currentUser() .then(this.transitionAuthor()) - .then(this.transitionEditor()) - .then(function () { - return feature.then(function () { - if (!feature.get('codeInjectionUI')) { - return self.transitionTo('settings.general'); - } - }); - }); + .then(this.transitionEditor()); }, model: function () { diff --git a/core/client/app/templates/settings/labs.hbs b/core/client/app/templates/settings/labs.hbs index aaeea4caf4..db4719979a 100644 --- a/core/client/app/templates/settings/labs.hbs +++ b/core/client/app/templates/settings/labs.hbs @@ -44,23 +44,4 @@ -