This commit also: - removes [+ New Topic] behaviour from share, this feature has been duplicated in composer actions, months ago - introduces our new experimental spacing standard for css: eg: `s(2)` - introduces a new panel UI for modals
27 lines
526 B
JavaScript
27 lines
526 B
JavaScript
import showModal from "discourse/lib/show-modal";
|
|
|
|
export default Ember.Mixin.create({
|
|
flash(text, messageClass) {
|
|
this.appEvents.trigger("modal-body:flash", { text, messageClass });
|
|
},
|
|
|
|
clearFlash() {
|
|
this.appEvents.trigger("modal-body:clearFlash");
|
|
},
|
|
|
|
showModal(...args) {
|
|
return showModal(...args);
|
|
},
|
|
|
|
actions: {
|
|
closeModal() {
|
|
this.get("modal").send("closeModal");
|
|
this.set("panels", []);
|
|
},
|
|
|
|
onSelectPanel(panel) {
|
|
this.set("selectedPanel", panel);
|
|
}
|
|
}
|
|
});
|