|
@ -30,10 +30,12 @@ patch(FormController.prototype, "save", { |
|
|
data = true; |
|
|
data = true; |
|
|
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; |
|
|
await this.model.root.switchMode("readonly"); |
|
|
if (saved) { |
|
|
|
|
|
await this.model.root.switchMode("readonly"); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
async discard() { |
|
|
async discard() { |
|
|
this._super(); |
|
|
this._super(); |
|
|