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