2014-08-12 19:04:36 -04:00
|
|
|
import ModalFunctionality from 'discourse/mixins/modal-functionality';
|
|
|
|
|
2015-08-11 12:27:07 -04:00
|
|
|
export default Ember.Controller.extend(ModalFunctionality, {
|
2013-08-21 10:49:35 -04:00
|
|
|
previousSelected: Ember.computed.equal('selectedTab', 'previous'),
|
|
|
|
newSelected: Ember.computed.equal('selectedTab', 'new'),
|
|
|
|
|
|
|
|
onShow: function() {
|
2015-02-25 09:54:57 -05:00
|
|
|
this.send("selectNew");
|
2013-08-21 10:49:35 -04:00
|
|
|
},
|
|
|
|
|
2015-02-25 09:54:57 -05:00
|
|
|
actions: {
|
|
|
|
selectNew: function() {
|
|
|
|
this.set('selectedTab', 'new');
|
|
|
|
},
|
2013-08-21 10:49:35 -04:00
|
|
|
|
2015-02-25 09:54:57 -05:00
|
|
|
selectPrevious: function() {
|
|
|
|
this.set('selectedTab', 'previous');
|
|
|
|
}
|
2013-08-21 10:49:35 -04:00
|
|
|
}
|
|
|
|
});
|