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

space switcher

This commit is contained in:
vabene1111
2024-12-22 14:06:55 +01:00
parent 8e0da93476
commit 5ce859f267
3 changed files with 37 additions and 8 deletions

View File

@@ -109,6 +109,7 @@ export const useUserPreferenceStore = defineStore('user_preference_store', () =>
api.apiSwitchActiveSpaceRetrieve({spaceId: space.id}).then(r => {
loadActiveSpace()
location.reload()
}).catch(err => {
useMessageStore().addError(ErrorMessageType.FETCH_ERROR, err)
})