Added ProfileSelection when no profile is selected

This commit is contained in:
2024-04-16 11:34:13 +02:00
parent c1108314c1
commit 1269d3b838
2 changed files with 46 additions and 14 deletions

View File

@@ -0,0 +1,24 @@
<script setup>
const dataStore = useDataStore()
</script>
<template>
<div class="w-1/2 mx-auto">
<p class="text-2xl mb-5 text-center">Bitte wähle dein gewünschtes Profil</p>
<div v-for="profile in dataStore.ownProfiles" class="flex justify-between my-3">
{{dataStore.tenants.find(i => i.id === profile.tenant).name}}
<UButton
variant="outline"
@click="dataStore.changeProfile(profile.id)"
>Auswählen</UButton>
</div>
</div>
</template>
<style scoped>
</style>