Pedidos stepper #80

Merged
jsegarra merged 16 commits from wbuezas/hedera-web-mindshore:feature/PedidosStepper into 4922-vueMigration 2024-09-03 14:06:02 +00:00
2 changed files with 8 additions and 2 deletions
Showing only changes of commit 6631be401b - Show all commits

View File

@ -351,6 +351,7 @@ onMounted(async () => {
color="accent" color="accent"
:locale="localeDates" :locale="localeDates"
first-day-of-week="1" first-day-of-week="1"
:minimal="appStore.isMobile"
/> />
</div> </div>
<!-- Address step --> <!-- Address step -->

View File

@ -2,13 +2,12 @@ import { defineStore } from 'pinia';
import { jApi } from 'boot/axios'; import { jApi } from 'boot/axios';
import useNotify from 'src/composables/useNotify.js'; import useNotify from 'src/composables/useNotify.js';
import { i18n } from 'src/boot/i18n'; import { i18n } from 'src/boot/i18n';
import { useQuasar } from 'quasar';
const { notify } = useNotify(); const { notify } = useNotify();
export const useAppStore = defineStore('hedera', { export const useAppStore = defineStore('hedera', {
state: () => ({ state: () => ({
title: null,
subtitle: null,
imageUrl: '', imageUrl: '',
useRightDrawer: false, useRightDrawer: false,
rightDrawerOpen: false, rightDrawerOpen: false,
@ -134,5 +133,11 @@ export const useAppStore = defineStore('hedera', {
notify('orderLoadedIntoBasket', 'positive'); notify('orderLoadedIntoBasket', 'positive');
} }
} }
},
getters: {
isMobile() {
const $q = useQuasar();
return $q?.screen?.width <= 768;
}
} }
}); });