1
0
mirror of https://github.com/TandoorRecipes/recipes.git synced 2026-01-11 17:16:59 -05:00

overhauld space management and settings system

This commit is contained in:
vabene1111
2025-09-14 08:48:49 +02:00
parent f722d24eaa
commit 4f248afe76
46 changed files with 221 additions and 361 deletions

View File

@@ -13,9 +13,7 @@
<v-list-item :to="{name: 'SearchSettings'}" prepend-icon="$search">{{ $t('Search') }}</v-list-item>
<v-divider></v-divider>
<v-list-subheader>Space</v-list-subheader>
<v-list-item :to="{name: 'UserSpaceSettings'}" prepend-icon="$spaces">{{ $t('YourSpaces') }}</v-list-item>
<v-list-item :to="{name: 'SpaceSettings'}" prepend-icon="$settings">{{ $t('SpaceSettings') }}</v-list-item>
<v-list-item :to="{name: 'SpaceMemberSettings'}" prepend-icon="fa-solid fa-users">{{ $t('SpaceMembers') }}</v-list-item>
<v-list-item :to="{name: 'OpenDataImportSettings'}" prepend-icon="fa-solid fa-cloud-arrow-down">{{ $t('Open_Data_Import') }}</v-list-item>
<v-list-item :to="{name: 'ExportDataSettings'}" prepend-icon="fa-solid fa-file-export">{{ $t('Export') }}</v-list-item>
<v-divider></v-divider>

View File

@@ -39,6 +39,7 @@
<v-spacer></v-spacer>
</template>
<template #next>
<v-btn @click="finishWelcome()" color="warning" class="me-2" :loading="loading">{{ $t('Skip') }}</v-btn>
<v-btn @click="updateSpaceAndUserSettings()" :loading="loading" color="success">{{ $t('Next') }}</v-btn>
</template>
</v-stepper-actions>
@@ -194,8 +195,10 @@ onMounted(() => {
function finishWelcome(target: RouteLocationRaw = {name: 'StartPage'}) {
if (space.value) {
space.value.spaceSetupCompleted = true
loading.value = true
updateSpace().then(() => {
router.push(target)
loading.value = false
})
} else {
useMessageStore().addMessage(MessageType.ERROR, "Space not loaded yet", 5000)