add cell field type

This commit is contained in:
Alex Turchyn
2023-06-27 00:57:29 +03:00
parent 419ede5b1d
commit 897df83633
14 changed files with 188 additions and 47 deletions
+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