2014-06-23 11:01:43 -05:00
|
|
|
var SettingsController = Ember.Controller.extend({
|
2015-01-04 14:45:30 -05:00
|
|
|
needs: ['feature'],
|
|
|
|
|
2014-11-28 06:09:45 -05:00
|
|
|
showGeneral: Ember.computed('session.user.name', function () {
|
|
|
|
return this.get('session.user.isAuthor') || this.get('session.user.isEditor') ? false : true;
|
|
|
|
}),
|
|
|
|
showUsers: Ember.computed('session.user.name', function () {
|
|
|
|
return this.get('session.user.isAuthor') ? false : true;
|
|
|
|
}),
|
2014-12-31 07:57:00 -05:00
|
|
|
showTags: Ember.computed('session.user.name', function () {
|
|
|
|
return this.get('session.user.isAuthor') ? false : true;
|
2014-11-28 06:09:45 -05:00
|
|
|
}),
|
2015-01-04 14:45:30 -05:00
|
|
|
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;
|
2014-11-28 06:09:45 -05:00
|
|
|
}),
|
|
|
|
showLabs: Ember.computed('session.user.name', function () {
|
|
|
|
return this.get('session.user.isAuthor') || this.get('session.user.isEditor') ? false : true;
|
|
|
|
}),
|
|
|
|
showAbout: Ember.computed('session.user.name', function () {
|
|
|
|
return this.get('session.user.isAuthor') ? false : true;
|
|
|
|
})
|
2014-06-23 11:01:43 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
export default SettingsController;
|