0
1
Fork 0

Add next and back buttons custom labels

This commit is contained in:
William Buezas 2024-09-01 21:42:09 -03:00
parent 95e23c05fa
commit 8e0f09cc0f
7 changed files with 12 additions and 10 deletions

View File

@ -105,23 +105,18 @@ async function confirm() {
<i18n lang="yaml">
en-US:
confirm: Confirm
wantToContinue: Are you sure you want to continue?
cancel: Cancel
es-ES:
confirm: Confirmar
wantToContinue: ¿Seguro que quieres continuar?
cancel: Cancelar
ca-ES:
confirm: Confirmar
wantToContinue: Segur que vols continuar?
cancel: Cancel·lar
fr-FR:
confirm: Confirmer
wantToContinue: Êtes-vous sûr de vouloir continuer?
cancel: Annuler
pt-PT:
confirm: Confirme
wantToContinue: Tem a certeza de que deseja continuar?
cancel: Cancelar
</i18n>

View File

@ -68,5 +68,6 @@ export default {
next: 'Següent',
remove: 'Esborrar',
agency: 'Agència',
noData: 'Sense dades'
noData: 'Sense dades',
confirm: 'Confirmar'
};

View File

@ -81,6 +81,7 @@ export default {
remove: 'Remove',
agency: 'Agency',
noData: 'No data',
confirm: 'Confirm',
orders: 'Orders',
order: 'Pending order',

View File

@ -88,6 +88,7 @@ export default {
remove: 'Borrar',
agency: 'Agencia',
noData: 'Sin datos',
confirm: 'Confirmar',
orders: 'Pedidos',
order: 'Pedido pendiente',

View File

@ -68,5 +68,6 @@ export default {
next: 'Suivant',
remove: 'Effacer',
agency: 'Agence',
noData: 'Aucune donnée'
noData: 'Aucune donnée',
confirm: 'Confirmer'
};

View File

@ -68,5 +68,6 @@ export default {
next: 'Seguinte',
remove: 'Eliminar',
agency: 'Agência',
noData: 'Sem dados'
noData: 'Sem dados',
confirm: 'Confirme'
};

View File

@ -61,6 +61,7 @@ const steps = {
},
{
name: 'confirm',
nextButtonLabel: t('confirm'),
onBeforeNextStep: async () => {
await submit();
}
@ -91,6 +92,7 @@ const steps = {
},
{
name: 'confirm',
nextButtonLabel: t('confirm'),
onBeforeNextStep: async () => {
await submit();
}
@ -445,14 +447,14 @@ onMounted(async () => {
flat
color="primary"
@click="onPreviousStep(stepIndex)"
:label="t('back')"
:label="step.nextButtonLabel || t('back')"
class="q-ml-sm"
:class="{ invisible: currentStep === 'method' }"
/>
<QBtn
@click="onNextStep(stepIndex)"
color="primary"
:label="t('next')"
:label="step.nextButtonLabel || t('next')"
/>
</QStepperNavigation>
</QStep>