2021-08-31 01:33:48 +02:00
|
|
|
import Controller from "@ember/controller";
|
|
|
|
import ModalFunctionality from "discourse/mixins/modal-functionality";
|
|
|
|
|
|
|
|
export default Controller.extend(ModalFunctionality, {
|
2021-09-01 21:46:39 +02:00
|
|
|
|
2021-08-31 01:33:48 +02:00
|
|
|
actions: {
|
|
|
|
save() {
|
|
|
|
this.send("closeModal");
|
|
|
|
},
|
|
|
|
resetToDefault() {
|
|
|
|
this.get('model.fields').forEach(field => {
|
|
|
|
field.set("enabled", true);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|