0
0
Fork 0

Merge pull request '#5018-pinned-modules-popover' (!34) from #5018-pinned-modules-popover into dev

Reviewed-on: verdnatura/salix-front#34
Reviewed-by: Joan Sanchez <joan@verdnatura.es>
This commit is contained in:
Joan Sanchez 2023-01-04 09:32:41 +00:00
commit feca1a0c3c
4 changed files with 33 additions and 32 deletions

View File

@ -8,7 +8,6 @@ const i18n = createI18n({
globalInjection: true,
messages,
missingWarn: false,
fallbackRoot: false,
legacy: false,
});

View File

@ -14,13 +14,8 @@ const pinnedModules = computed(() => navigation.getPinnedModules());
</script>
<template>
<q-menu
anchor="bottom left"
class="row q-pa-md q-col-gutter-lg"
max-width="350px"
max-height="400px"
v-if="pinnedModules.length"
>
<q-menu anchor="bottom left" class="row q-pa-md q-col-gutter-lg" max-width="350px" max-height="400px">
<template v-if="pinnedModules.length">
<div v-for="item of pinnedModules" :key="item.title" class="row no-wrap q-pa-xs flex-item">
<q-btn
align="evenly"
@ -38,6 +33,12 @@ const pinnedModules = computed(() => navigation.getPinnedModules());
</div>
</q-btn>
</div>
</template>
<template v-else>
<div class="row no-wrap q-pa-xs flex-item text-center text-grey-5" style="min-width: 200px">
{{ t('globals.noPinnedModules') }}
</div>
</template>
</q-menu>
</template>

View File

@ -30,6 +30,7 @@ export default {
rowAdded: 'Row added',
rowRemoved: 'Row removed',
pleaseWait: 'Please wait...',
noPinnedModules: 'You have dont have any pinned modules',
},
moduleIndex: {
allModules: 'All modules',

View File

@ -30,6 +30,7 @@ export default {
rowAdded: 'Fila añadida',
rowRemoved: 'Fila eliminada',
pleaseWait: 'Por favor, espera...',
noPinnedModules: 'No has fijado ningún módulo',
},
moduleIndex: {
allModules: 'Todos los módulos',
@ -227,8 +228,8 @@ export default {
requester: 'Solicitante',
atender: 'Comprador',
request: 'Petición de compra',
goTo: 'Ir a'
}
goTo: 'Ir a',
},
},
claim: {
pageTitles: {
@ -299,7 +300,7 @@ export default {
list: 'Listado',
createInvoiceOut: 'Crear fact. emitida',
summary: 'Resumen',
basicData: 'Datos básicos'
basicData: 'Datos básicos',
},
list: {
ref: 'Referencia',
@ -308,7 +309,7 @@ export default {
client: 'Cliente',
created: 'Fecha creación',
company: 'Empresa',
dued: 'Fecha vencimineto'
dued: 'Fecha vencimineto',
},
card: {
issued: 'Fecha emisión',
@ -316,7 +317,7 @@ export default {
client: 'Cliente',
company: 'Empresa',
customerCard: 'Ficha del cliente',
ticketList: 'Listado de tickets'
ticketList: 'Listado de tickets',
},
summary: {
issued: 'Fecha',
@ -334,8 +335,7 @@ export default {
nickname: 'Alias',
shipped: 'F. envío',
totalWithVat: 'Importe',
}
},
},
components: {
topbar: {},