mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 20:43:43 +08:00
21 lines
501 B
JavaScript
21 lines
501 B
JavaScript
import ModalFunctionality from 'discourse/mixins/modal-functionality';
|
|
|
|
export default Ember.Controller.extend(ModalFunctionality, {
|
|
previousSelected: Ember.computed.equal('selectedTab', 'previous'),
|
|
newSelected: Ember.computed.equal('selectedTab', 'new'),
|
|
|
|
onShow: function() {
|
|
this.send("selectNew");
|
|
},
|
|
|
|
actions: {
|
|
selectNew: function() {
|
|
this.set('selectedTab', 'new');
|
|
},
|
|
|
|
selectPrevious: function() {
|
|
this.set('selectedTab', 'previous');
|
|
}
|
|
}
|
|
});
|