2014-08-12 19:04:36 -04:00
|
|
|
import ModalFunctionality from 'discourse/mixins/modal-functionality';
|
|
|
|
|
|
|
|
import ObjectController from 'discourse/controllers/object';
|
|
|
|
|
|
|
|
export default ObjectController.extend(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');
|
|
|
|
}
|
|
|
|
});
|