mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 10:13:32 -04:00 
			
		
		
		
	Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com> Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
		
			
				
	
	
		
			22 lines
		
	
	
		
			413 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			413 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
| <template>
 | |
|   <div scoped-slot />
 | |
| </template>
 | |
| 
 | |
| <script lang="ts">
 | |
| /**
 | |
|  * Renderless component that only renders if the user is logged in.
 | |
|  * and has advanced options toggled.
 | |
|  */
 | |
| export default defineNuxtComponent({
 | |
|   setup(_, ctx) {
 | |
|     const $auth = useMealieAuth();
 | |
| 
 | |
|     const r = $auth.user.value?.advanced || false;
 | |
| 
 | |
|     return () => {
 | |
|       return r ? ctx.slots.default?.() : null;
 | |
|     };
 | |
|   },
 | |
| });
 | |
| </script>
 |