discourse/app/assets/javascripts/admin/controllers/change-site-customization-d...

17 lines
414 B
Plaintext
Raw Normal View History

export default Discourse.ObjectController.extend(Discourse.ModalFunctionality, {
previousSelected: Ember.computed.equal('selectedTab', 'previous'),
newSelected: Ember.computed.equal('selectedTab', 'new'),
onShow: function() {
this.selectNew();
},
selectNew: function() {
this.set('selectedTab', 'new');
},
selectPrevious: function() {
this.set('selectedTab', 'previous');
}
});