Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-30 04:30:29 +01:00
15 Zeilen
372 B
JavaScript
15 Zeilen
372 B
JavaScript
import Controller from "@ember/controller";
|
|
import ModalFunctionality from "discourse/mixins/modal-functionality";
|
|
|
|
export default Controller.extend(ModalFunctionality, {
|
|
actions: {
|
|
save() {
|
|
this.send("closeModal");
|
|
},
|
|
resetToDefault() {
|
|
this.get("model.fields").forEach((field) => {
|
|
field.set("enabled", true);
|
|
});
|
|
},
|
|
},
|
|
});
|