Browse Source

fix(nc-gui): disable submit if form was submitted

pull/4099/head
braks 2 years ago
parent
commit
d11cbde7f2
  1. 8
      packages/nc-gui/pages/[projectType]/form/[viewId]/index/survey.vue

8
packages/nc-gui/pages/[projectType]/form/[viewId]/index/survey.vue

@ -159,6 +159,12 @@ function resetForm() {
goTo(steps.value[0])
}
function submit() {
if (submitted.value) return
submitForm()
}
onReset(resetForm)
onKeyStroke(['ArrowLeft', 'ArrowDown'], () => {
@ -289,7 +295,7 @@ onMounted(() => {
type="submit"
class="uppercase scaling-btn prose-sm"
data-cy="nc-survey-form__btn-submit"
@click="submitForm"
@click="submit"
>
{{ $t('general.submit') }}
</button>

Loading…
Cancel
Save