add new landing page firstlogin close #18

This commit is contained in:
Adrian Zürcher
2025-12-10 14:05:37 +01:00
parent 714ca0219a
commit 6be85e86af
14 changed files with 119 additions and 20 deletions

View File

@@ -12,6 +12,7 @@ const { NotifyResponse } = useNotify();
export const useUserStore = defineStore('user', {
state: (): UserState => ({
user: null,
firstLogin: false,
}),
getters: {
isAuthenticated: (state: UserState): boolean => {
@@ -42,6 +43,9 @@ export const useUserStore = defineStore('user', {
},
},
actions: {
setFirstLogin(b: boolean) {
this.firstLogin = b;
},
async setUser(user: User) {
await appApi
.get('roles?role=' + user.role?.role)