|
@ -31,9 +31,11 @@ patch(FormController.prototype, "save", { |
|
|
await this.model.root.switchMode("edit"); |
|
|
await this.model.root.switchMode("edit"); |
|
|
}, |
|
|
}, |
|
|
async saveButtonClicked(params = {}) { |
|
|
async saveButtonClicked(params = {}) { |
|
|
this._super(); |
|
|
let saved = await this._super(); |
|
|
data = false; |
|
|
data = false; |
|
|
|
|
|
if (saved) { |
|
|
await this.model.root.switchMode("readonly"); |
|
|
await this.model.root.switchMode("readonly"); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
async discard() { |
|
|
async discard() { |
|
|
this._super(); |
|
|
this._super(); |
|
|