mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 10:08:20 -05:00
20 lines
528 B
JavaScript
20 lines
528 B
JavaScript
import ModalFunctionality from 'discourse/mixins/modal-functionality';
|
|
|
|
import ObjectController from 'discourse/controllers/object';
|
|
|
|
export default ObjectController.extend(ModalFunctionality, {
|
|
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');
|
|
}
|
|
});
|