Remove vform - working on form public page

This commit is contained in:
Julien Nahum
2023-12-24 20:19:59 +01:00
parent 8db2b09767
commit e2dd0295ff
32 changed files with 951 additions and 813 deletions

View File

@@ -42,6 +42,14 @@ export const useFormsStore = defineStore('forms', () => {
})
}
/**
* Load a form from the public API
*/
const publicLoad = (slug) => {
contentStore.startLoading()
return useOpnApi('/forms/' + slug)
}
const allTags = computed(() => {
let tags = []
contentStore.getAll.value.forEach((form) => {
@@ -56,7 +64,8 @@ export const useFormsStore = defineStore('forms', () => {
...contentStore,
allLoaded,
allTags,
publicLoad,
loadAll,
load
load,
}
})