05444 save content of form in browser storage if not submitted (#26)

* Save content of form in browser storage if not submitted

* Rename key form + fix tests
This commit is contained in:
Chirag
2022-11-16 15:50:28 +05:30
committed by GitHub
parent 0c0a9f1349
commit 310df29e73
4 changed files with 30 additions and 2 deletions

View File

@@ -191,6 +191,9 @@ export default {
workspace_id: this.form.workspace_id,
form_id: this.form.id
})
window.localStorage.removeItem(this.form.form_pending_submission_Key)
if (response.data.redirect && response.data.redirect_url) {
window.location.href = response.data.redirect_url
}