diff --git a/src/components/ui/VnSearchBar.vue b/src/components/ui/VnSearchBar.vue index 375e9e8f..c4de44f3 100644 --- a/src/components/ui/VnSearchBar.vue +++ b/src/components/ui/VnSearchBar.vue @@ -70,6 +70,7 @@ onMounted(() => { bg-color="white" is-outlined :clearable="false" + class="searchbar" > + en-US: search: Search diff --git a/src/composables/usePrintService.js b/src/composables/usePrintService.js index e96e26e2..05077083 100644 --- a/src/composables/usePrintService.js +++ b/src/composables/usePrintService.js @@ -5,8 +5,7 @@ import { useQuasar } from 'quasar'; export function usePrintService() { const quasar = useQuasar(); - const userStore = useUserStore(); - const token = userStore.token; + const { getTokenMultimedia } = useUserStore(); function sendEmail(path, params) { return axios.post(path, params).then(() => @@ -18,17 +17,17 @@ export function usePrintService() { ); } - function openReport(path, params) { + function openReport(path, params, isNewTab = '_self') { + if (typeof params === 'string') params = JSON.parse(params); params = Object.assign( { - access_token: token + access_token: getTokenMultimedia() }, params ); const query = new URLSearchParams(params).toString(); - - window.open(`api/${path}?${query}`); + window.open(`api/${path}?${query}`, isNewTab); } return { diff --git a/src/css/responsive.scss b/src/css/responsive.scss index e06defc2..38f75a4b 100644 --- a/src/css/responsive.scss +++ b/src/css/responsive.scss @@ -9,3 +9,9 @@ @content; } } + +@mixin desktop { + @media screen and (min-width: 1025px) { + @content; + } +} diff --git a/src/i18n/ca-ES/index.js b/src/i18n/ca-ES/index.js index 8aba51a8..0a3d7b1a 100644 --- a/src/i18n/ca-ES/index.js +++ b/src/i18n/ca-ES/index.js @@ -119,6 +119,7 @@ export default { confirmDelete: 'Estàs segur que vols esborrar la línia?', emptyList: 'Llista buida', logInAsGuest: `Accedir com a convidat`, + logIn: 'Iniciar sessió', haveForgottenPassword: '¿Has oblidat la teva contrasenya?', signUp: 'Registrar-me', notACustomerYet: `Encara no ets client?`, diff --git a/src/i18n/en-US/index.js b/src/i18n/en-US/index.js index 38bc9373..b18d90cc 100644 --- a/src/i18n/en-US/index.js +++ b/src/i18n/en-US/index.js @@ -153,7 +153,8 @@ export default { save: 'Save', cancel: 'Cancel', of: 'of', - loginAsGuest: 'Login as guest', + logInAsGuest: 'Login as guest', + logIn: 'Log in', haveForgottenPassword: 'Have you forgotten your password?', signUp: 'Sign up', notACustomerYet: 'Not a customer yet?', diff --git a/src/i18n/es-ES/index.js b/src/i18n/es-ES/index.js index 69927961..dda8dab9 100644 --- a/src/i18n/es-ES/index.js +++ b/src/i18n/es-ES/index.js @@ -108,7 +108,7 @@ export default { Connections: 'Conexiones', Visits: 'Visitas', News: 'Noticias', - Photos: 'Imágenes', + Photos: 'Fotos', Items: 'Artículos', Account: 'Cuenta', Addresses: 'Direcciones' diff --git a/src/i18n/fr-FR/index.js b/src/i18n/fr-FR/index.js index abf93cbb..56a5742e 100644 --- a/src/i18n/fr-FR/index.js +++ b/src/i18n/fr-FR/index.js @@ -120,6 +120,7 @@ export default { emptyList: 'Vider la liste', confirmDelete: 'Voulez-vous vraiment supprimer la ligne?', logInAsGuest: `Entrez en tant qu'invité`, + logIn: 'Se connecter', haveForgottenPassword: 'Avez-vous oublié votre mot de passe?', signUp: `S'inscrire`, notACustomerYet: `Pas encore client?`, diff --git a/src/i18n/pt-PT/index.js b/src/i18n/pt-PT/index.js index d527af10..f49db9f4 100644 --- a/src/i18n/pt-PT/index.js +++ b/src/i18n/pt-PT/index.js @@ -117,6 +117,7 @@ export default { confirmDelete: 'Tens certeza que queres eliminar esta linha?', emptyList: 'Lista vazia', logInAsGuest: 'Entrar como convidado', + logIn: 'Iniciar sessão', haveForgottenPassword: 'Esqueceu a senha?', signUp: 'Registar', notACustomerYet: 'Ainda não é cliente?', diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index 228a342c..ef2f762e 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -1,5 +1,5 @@ @@ -113,9 +122,7 @@ onMounted(() => fetchLanguagesSql()); option-label="name" option-value="code" :options="langOptions" - @update:model-value=" - userStore.updateUserLang(data.lang) - " + @update:model-value="updateConfigLang(data.lang)" />