2014-07-22 23:20:45 -04:00
|
|
|
export default Discourse.ObjectController.extend(Discourse.ModalFunctionality, {
|
2013-08-21 10:49:35 -04:00
|
|
|
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');
|
|
|
|
}
|
|
|
|
});
|