feat(backend,frontend): Update application form, add label to switch
This commit is contained in:
@@ -37,7 +37,7 @@ import { ComplianceStatus, type PagedApplicationFormDto } from '~/.api-client'
|
||||
import { useApplicationFormValidator } from '~/composables/useApplicationFormValidator'
|
||||
import type { FormElementId } from '~/types/FormElement'
|
||||
|
||||
const { getAllApplicationForms } = useApplicationForm()
|
||||
const { getAllApplicationForms, updateApplicationForm } = useApplicationForm()
|
||||
const { validateFormElements, getHighestComplianceStatus } = useApplicationFormValidator()
|
||||
|
||||
const { data } = await useAsyncData<PagedApplicationFormDto>(async () => {
|
||||
@@ -64,7 +64,7 @@ watch(
|
||||
{ deep: true }
|
||||
)
|
||||
|
||||
function onSubmit() {
|
||||
console.log('Submitted')
|
||||
async function onSubmit() {
|
||||
await updateApplicationForm(data?.value?.content[0].id, data?.value?.content[0])
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user