3a703 admin edit submission (#305)
* wip: admin submission edit feature * wip: refresh form submission after update * wip: connect submissions page data to store * Fixed the submission loading issue * test: admin edit submission feature test * Fix pending submission, editabe submission & more (#306) --------- Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
@@ -13,7 +13,7 @@ export const pendingSubmission = (form) => {
|
||||
|
||||
const set = (value) => {
|
||||
if (process.server || !enabled.value) return
|
||||
useStorage(formPendingSubmissionKey.value).value = JSON.stringify(value)
|
||||
useStorage(formPendingSubmissionKey.value).value = value === null ? value : JSON.stringify(value)
|
||||
}
|
||||
|
||||
const remove = () => {
|
||||
@@ -29,6 +29,7 @@ export const pendingSubmission = (form) => {
|
||||
return {
|
||||
enabled,
|
||||
set,
|
||||
get
|
||||
get,
|
||||
remove
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user