add cell field type

This commit is contained in:
Alex Turchyn committed 2023-06-27 10:39:55 +03:00
1 parent 419ede5b1d
commit 897df83633
14 files changed
+188 -47

No files matched your search

+9 -5
View File
@@ -33,7 +33,7 @@
type="hidden"
>
<div class="mt-4">
<div v-if="currentField.type === 'text'">
<div v-if="['cells', 'text'].includes(currentField.type)">
<label
v-if="currentField.name"
:for="currentField.uuid"
@@ -369,10 +369,14 @@ export default {
})
},
saveStep () {
return fetch(this.submitPath, {
method: 'POST',
body: new FormData(this.$refs.form)
})
if (this.isCompleted) {
return Promise.resolve({})
} else {
return fetch(this.submitPath, {
method: 'POST',
body: new FormData(this.$refs.form)
})
}
},
async submitStep () {
this.isSubmitting = true