mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 03:25:31 -05:00
16 lines
414 B
JavaScript
16 lines
414 B
JavaScript
export default Discourse.ObjectController.extend(Discourse.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');
|
|
}
|
|
});
|