space settings

This commit is contained in:
vabene1111
2024-09-02 17:48:59 +02:00
parent 6087668e26
commit 5f184693ca
6 changed files with 102 additions and 24 deletions

View File

@@ -7,8 +7,8 @@
<v-row>
<v-col cols="6" v-for="s in spaces">
<v-card>
<v-img height="200px" :src="recipeDefaultImage" :alt="$t('Image')"> </v-img>
<v-card @click="useUserPreferenceStore().switchSpace(s)">
<v-img height="200px" cover :src="(s.image !== undefined) ? s.image?.preview : recipeDefaultImage" :alt="$t('Image')"> </v-img>
<v-card-title>{{ s.name }} <v-chip variant="tonal" density="compact" color="error" v-if="s.id == useUserPreferenceStore().activeSpace.id">{{$t('active')}}</v-chip></v-card-title>
<v-card-subtitle>{{ $t('created_by') }} {{ s.createdBy.displayName }} </v-card-subtitle>
</v-card>