mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-04-10 15:05:35 -04:00
chore: Nuxt 4 upgrade (#7426)
This commit is contained in:
13
frontend/app/components/global/AdvancedOnly.vue
Normal file
13
frontend/app/components/global/AdvancedOnly.vue
Normal file
@@ -0,0 +1,13 @@
|
||||
<template>
|
||||
<slot v-if="advanced" />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
/**
|
||||
* Renderless component that only renders if the user is logged in.
|
||||
* and has advanced options toggled.
|
||||
*/
|
||||
const auth = useMealieAuth();
|
||||
|
||||
const advanced = auth.user.value?.advanced || false;
|
||||
</script>
|
||||
Reference in New Issue
Block a user