0bc151fc7b
Currently modal and edit columns works but removes only field and not corresponding submission.
16 Zeilen
Kein EOL
369 B
JavaScript
16 Zeilen
Kein EOL
369 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);
|
|
});
|
|
}
|
|
}
|
|
}); |