|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div v-if="showPopupStatus">
|
|
|
+ <div v-if="layoutStore.isCookieConsentDialogVisible">
|
|
|
<div class="cookie-consent-banner">
|
|
|
<div class="continue-wrapper">
|
|
|
<a class="continue" href="#" @click.prevent="continueWithoutAccepting">
|
|
|
@@ -8,8 +8,8 @@
|
|
|
<v-icon
|
|
|
size="20"
|
|
|
class="fa-solid fa-arrow-right ml-6"
|
|
|
- @click="showPopupStatus = false"
|
|
|
- ></v-icon>
|
|
|
+ @click="closePopup()"
|
|
|
+ />
|
|
|
</div>
|
|
|
<v-row justify="center">
|
|
|
<v-col cols="12">
|
|
|
@@ -176,8 +176,9 @@ import CookieManager from '~/services/CookieManager'
|
|
|
import { COOKIE_CONSENT_CHOICE } from '~/types/enum/enums'
|
|
|
import type { CookiesPreferences } from '~/types/interface'
|
|
|
|
|
|
+const layoutStore = useLayoutStore()
|
|
|
+
|
|
|
const { cookies } = useCookies()
|
|
|
-const showPopupStatus = ref(false)
|
|
|
const showCustomizationOptions = ref(false)
|
|
|
const showNotification = ref(false)
|
|
|
|
|
|
@@ -190,13 +191,13 @@ const cookiesPreferences: Ref<CookiesPreferences> = ref({
|
|
|
})
|
|
|
|
|
|
const showPopup = () => {
|
|
|
- showPopupStatus.value = true
|
|
|
- showCustomizationOptions.value = false
|
|
|
- showNotification.value = false
|
|
|
+ layoutStore.setIsCookieConsentDialogVisible(true)
|
|
|
}
|
|
|
|
|
|
const closePopup = () => {
|
|
|
- showPopupStatus.value = false
|
|
|
+ layoutStore.setIsCookieConsentDialogVisible(false)
|
|
|
+ showCustomizationOptions.value = false
|
|
|
+ showNotification.value = false
|
|
|
}
|
|
|
|
|
|
const notify = () => {
|