Did more stuff than I even wanna write. Notably:
- Auth/account management - Navigation system - Admin views for LOA stuff
This commit is contained in:
10
ui/src/stores/user.ts
Normal file
10
ui/src/stores/user.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { ref, computed } from 'vue'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
export const useUserStore = defineStore('user', () => {
|
||||
const user = ref(null)
|
||||
const roles = ref<string[]>([])
|
||||
|
||||
const isLoggedIn = computed(() => user.value !== null)
|
||||
return { user, isLoggedIn, roles }
|
||||
})
|
||||
Reference in New Issue
Block a user