+
+
@@ -290,7 +299,7 @@ const appStore = useAppStore();
const userStore = useUserStore();
const route = useRoute();
const router = useRouter();
-const { isHeaderMounted, rightDrawerOpen, basketOrderId } =
+const { isHeaderMounted, rightDrawerOpen, basketOrderId, isDesktop } =
storeToRefs(appStore);
const { isGuest } = storeToRefs(userStore);
const { notify } = useNotify();
@@ -915,6 +924,10 @@ const redirectToBasket = () => {
router.push({ name: 'basket' });
};
+const toggleRightDrawer = () => {
+ rightDrawerOpen.value = !rightDrawerOpen.value;
+};
+
watch(
() => route.query.search,
val => {
diff --git a/src/stores/app.js b/src/stores/app.js
index ed16085e..8a856ad2 100644
--- a/src/stores/app.js
+++ b/src/stores/app.js
@@ -155,6 +155,10 @@ export const useAppStore = defineStore('hedera', {
isTablet() {
const $q = useQuasar();
return $q?.screen?.width <= 1024;
+ },
+ isDesktop() {
+ const $q = useQuasar();
+ return $q?.screen?.width > 1024;
}
}
});