0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-30 04:30:29 +01:00
discourse-custom-wizard/assets/javascripts/discourse/controllers/admin-wizards-submissions-columns.js.es6

16 Zeilen
372 B
Text

import Controller from "@ember/controller";
import ModalFunctionality from "discourse/mixins/modal-functionality";
export default Controller.extend(ModalFunctionality, {
actions: {
save() {
this.send("closeModal");
},
resetToDefault() {
2021-09-03 00:41:55 +02:00
this.get("model.fields").forEach((field) => {
field.set("enabled", true);
});
2021-09-03 00:41:55 +02:00
},
},
});