File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,13 +12,8 @@ import { isMobile } from "@/services/utils"
1212
1313/** Store */
1414import { useAppStore } from " @/store/app.store"
15- import { useAuthStore } from " @/store/auth.store.js"
16- import { useModalsStore } from " @/store/modals.store.js"
1715
1816const appStore = useAppStore ()
19- const authStore = useAuthStore ()
20- const modalsStore = useModalsStore ()
21-
2217 </script >
2318
2419<template >
@@ -38,9 +33,6 @@ const modalsStore = useModalsStore()
3833 </Flex >
3934
4035 <Flex align =" center" gap =" 12" >
41- <Button v-if =" authStore.isAuthenticated" @click =" modalsStore.open('settings')" type =" secondary" size =" mini" >
42- <Icon name =" settings" size =" 14" color =" secondary" />
43- </Button >
4436 <Button @click =" appStore.showCmd = true" type =" secondary" size =" mini" >
4537 <Icon name =" terminal_square" size =" 16" color =" secondary" />
4638 </Button >
Original file line number Diff line number Diff line change @@ -5,8 +5,10 @@ import { Dropdown, DropdownItem } from "@/components/ui/Dropdown"
55
66/** Store */
77import { useAuthStore } from " @/store/auth.store.js"
8+ import { useModalsStore } from " @/store/modals.store.js"
89
910const authStore = useAuthStore ()
11+ const modalsStore = useModalsStore ()
1012
1113const login = () => {
1214 authStore .login ()
@@ -30,6 +32,9 @@ onMounted(() => {
3032 </Button >
3133
3234 <template #popup >
35+ <DropdownItem @click =" modalsStore.open('settings')" >
36+ Settings
37+ </DropdownItem >
3338 <DropdownItem @click =" logout" >
3439 Logout
3540 </DropdownItem >
You can’t perform that action at this time.
0 commit comments