Dominik Milacher 0594afe6a0
All checks were successful
Build and deploy updated apps / Build & deploy (push) Successful in 2m15s
Show cookie toast only once
2025-06-23 21:42:00 +02:00

27 lines
534 B
Vue

<template>
<NuxtLayout>
<NuxtPage/>
</NuxtLayout>
</template>
<script setup>
const { t } = useVariantData()
const { add } = useToast()
const shown = useCookie('cookie-toast-shown', { maxAge: 60 * 60 * 24 * 7 })
onMounted(() => {
if (!shown.value) {
add({
title: t('cookies.title'),
description: t('cookies.description'),
timeout: 8000,
color: 'primary',
icon: 'i-heroicons-shield-check',
ui: {
position: "bottom-center"
}
})
shown.value = true
}
})
</script>