#8725 - submit_form_onClick #1564

Merged
jsegarra merged 25 commits from 8725_submit_form_onClick into dev 2025-04-08 12:58:52 +00:00
1 changed files with 4 additions and 2 deletions
Showing only changes of commit 9b3a98e26f - Show all commits

View File

@ -97,12 +97,13 @@ defineExpose({
:flat="showSaveAndContinueBtn"
:label="t('globals.save')"
:title="t('globals.save')"
type="submit"
:type="!showSaveAndContinueBtn ? 'submit' : 'button'"
Review

Si funciona igual, veo mas simple usar 2 @click q 4 ternarios

Si funciona igual, veo mas simple usar 2 @click q 4 ternarios
Review

No entiendo.
No funcionan igual. Uno al pulsar, esconde el modal y el continue, limpia el formulario y se mantiene a la vista
Son 2 botones diferentes y tienen condiciones diferentes

No entiendo. No funcionan igual. Uno al pulsar, esconde el modal y el continue, limpia el formulario y se mantiene a la vista Son 2 botones diferentes y tienen condiciones diferentes
color="primary"
class="q-ml-sm"
:disabled="isLoading"
:loading="isLoading"
data-cy="FormModelPopup_save"
@click="showSaveAndContinueBtn ? onClick(false) : null"
z-max
/>
<QBtn
@ -110,11 +111,12 @@ defineExpose({
:label="t('globals.isSaveAndContinue')"
:title="t('globals.isSaveAndContinue')"
color="primary"
type="submit"
:type="showSaveAndContinueBtn ? 'submit' : 'button'"
class="q-ml-sm"
:disabled="isLoading"
:loading="isLoading"
data-cy="FormModelPopup_isSaveAndContinue"
@click="showSaveAndContinueBtn ? onClick(true) : null"
z-max
/>
</div>