mirror of
https://github.com/discourse/discourse.git
synced 2025-02-11 07:09:29 +08:00
15 lines
407 B
JavaScript
15 lines
407 B
JavaScript
import ModalFunctionality from 'discourse/mixins/modal-functionality';
|
|
|
|
export default Ember.Controller.extend(ModalFunctionality, {
|
|
showMore: false,
|
|
local: true,
|
|
remote: Ember.computed.not("local"),
|
|
|
|
actions: {
|
|
useLocal() { this.setProperties({ local: true, showMore: false}); },
|
|
useRemote() { this.set("local", false); },
|
|
toggleShowMore() { this.toggleProperty("showMore"); }
|
|
}
|
|
|
|
});
|