FEATURE: unified UI for pinning/banner topics

REFACTOR: ES6ified all the modals
This commit is contained in:
Régis Hanol
2015-03-14 01:18:05 +01:00
parent 7c1540e5ab
commit 424a3b042a
64 changed files with 410 additions and 230 deletions

View File

@ -0,0 +1,21 @@
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.send("selectNew");
},
actions: {
selectNew: function() {
this.set('selectedTab', 'new');
},
selectPrevious: function() {
this.set('selectedTab', 'previous');
}
}
});