refs #6321 i18n: buttons tooltip

This commit is contained in:
Javier Segarra 2024-03-29 00:56:10 +01:00
parent 737ab9e99b
commit 697c467006
4 changed files with 34 additions and 40 deletions

View File

@ -33,6 +33,8 @@ export default {
confirm: 'Confirm',
assign: 'Assign',
back: 'Back',
split: 'Split',
splitAll: 'Split all',
yes: 'Yes',
no: 'No',
noChanges: 'No changes to save',

View File

@ -33,6 +33,8 @@ export default {
confirm: 'Confirmar',
assign: 'Asignar',
back: 'Volver',
split: 'Separar',
splitAll: 'Separar todos',
yes: 'Si',
no: 'No',
noChanges: 'Sin cambios que guardar',
@ -474,7 +476,7 @@ export default {
totalNegative: 'Total negativos',
modalOrigin: {
title: 'Actualizar negativos',
question: 'Seleccione un estado para guardar'
question: 'Seleccione un estado para guardar',
},
detail: {
itemFk: 'Articulo',
@ -493,7 +495,7 @@ export default {
peticionCompra: 'Petición compra',
isRookie: 'Cliente nuevo',
turno: 'Linea turno',
}
},
},
boxing: {
expedition: 'Expedición',

View File

@ -407,7 +407,7 @@ defineExpose({ split });
>
<QIcon name="call_split"></QIcon>
<QTooltip>
{{ t('components.leftMenu.removeFromPinned') }}
{{ t('globals.split') }}
</QTooltip>
</QBtn>
</template>

View File

@ -2,9 +2,7 @@
import { toRefs, ref } from 'vue';
import TicketLackDialog from './TicketLackDialog.vue';
import { useSession } from 'src/composables/useSession';
// import { useVnConfirm } from 'composables/useVnConfirm';
import { useI18n } from 'vue-i18n';
// import VnConfirm from 'components/ui/VnConfirm.vue';
const { t } = useI18n();
const $props = defineProps({
@ -21,19 +19,11 @@ const { ticket } = toRefs($props);
const session = useSession();
const token = session.getTokenMultimedia();
// const { openConfirmationModal } = useVnConfirm();
const ticketRef = ref(null);
const hasRowsSelected = ref(false);
// const confirmationModal = ref(false);
async function splitAll() {
// confirmationModal.value = true;
ticketRef.value.split({ all: true });
// openConfirmationModal(
// t('Confirm splitAll'),
// t('Are you sure you want to split all tickets?'),
// null,
// () =>
// );
}
</script>
<template>
@ -63,7 +53,7 @@ async function splitAll() {
>
<QIcon name="call_split"></QIcon>
<QTooltip>
{{ t('components.leftMenu.removeFromPinned') }}
{{ t('globals.splitAll') }}
</QTooltip>
</QBtn>
<QBtn icon="close" flat round dense v-close-popup />
@ -75,5 +65,5 @@ async function splitAll() {
@selection="(rows) => (hasRowsSelected = rows.length > 0)"
/> </QCardSection></QCard
></QDialog>
<!-- <VnConfirm v-if="confirmationModal"></VnConfirm> -->
</template>
<i18n> </i18n>