|
@ -232,6 +232,11 @@ export default { |
|
|
async save({ rethrow = false, overwrite = false } = {}) { |
|
|
async save({ rethrow = false, overwrite = false } = {}) { |
|
|
this.showProgressDialog('saving') |
|
|
this.showProgressDialog('saving') |
|
|
this.isSaving = true |
|
|
this.isSaving = true |
|
|
|
|
|
|
|
|
|
|
|
const saveTimeoutHandle = setTimeout(() => { |
|
|
|
|
|
throw new Error('Save operation timed out.') |
|
|
|
|
|
}, 30000) |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
if (this.$store.get('editor/mode') === 'create') { |
|
|
if (this.$store.get('editor/mode') === 'create') { |
|
|
// -------------------------------------------- |
|
|
// -------------------------------------------- |
|
@ -338,9 +343,13 @@ export default { |
|
|
icon: 'warning' |
|
|
icon: 'warning' |
|
|
}) |
|
|
}) |
|
|
if (rethrow === true) { |
|
|
if (rethrow === true) { |
|
|
|
|
|
clearTimeout(saveTimeoutHandle) |
|
|
|
|
|
this.isSaving = false |
|
|
|
|
|
this.hideProgressDialog() |
|
|
throw err |
|
|
throw err |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
clearTimeout(saveTimeoutHandle) |
|
|
this.isSaving = false |
|
|
this.isSaving = false |
|
|
this.hideProgressDialog() |
|
|
this.hideProgressDialog() |
|
|
}, |
|
|
}, |
|
|