Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/mixins/ViewsMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,14 @@
showError(t('forms', 'Error while saving form'))
}
},

/**
* Attempt to unlock the form.
*/
async tryFormUnlock() {
this.form.lockedUntil = null
await this.saveFormProperty('lockedUntil')
},

Check failure on line 192 in src/mixins/ViewsMixin.js

View workflow job for this annotation

GitHub Actions / NPM lint

Delete `⏎`
},
}
4 changes: 4 additions & 0 deletions src/views/Create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,10 @@ export default {
SetWindowTitle(this.formTitle)
},
async unmounted() {
await this.tryFormUnlock()
},
methods: {
setQuestionRef(el) {
if (el) {
Expand Down
Loading