Reworked workspaces store

This commit is contained in:
Julien Nahum
2023-12-19 18:57:31 +01:00
parent aac4d1da04
commit 5640f43b9d
17 changed files with 210 additions and 282 deletions

View File

@@ -1,4 +1,5 @@
import { useAuthStore } from '../stores/auth';
import { useAuthStore } from '../stores/auth'
import { useWorkspacesStore } from '../stores/workspaces'
import * as Sentry from '@sentry/vue'
export function initCrisp (user) {
@@ -45,6 +46,7 @@ export default async (to, from, next) => {
authStore.fetchUser().then((user) => {
initCrisp(user)
initSentry(user)
useWorkspacesStore().fetchWorkspaces()
})
} catch (e) {
console.error(e)