1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-23 14:46:08 +09:00

fix(ui): remove a duplicated command (#2718)

This commit is contained in:
lazzzis 2024-03-29 21:19:22 -07:00 committed by GitHub
parent 28514e956d
commit 587c063aba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -245,24 +245,12 @@ export function useCommands(cmds: () => CommandProvider[]) {
export function provideGlobalCommands() {
const { locale, t } = useI18n()
const { locales } = useI18n() as { locales: ComputedRef<LocaleObject[]> }
const router = useRouter()
const users = useUsers()
const masto = useMasto()
const colorMode = useColorMode()
const userSettings = useUserSettings()
const { singleInstanceServer, oauth } = useSignIn()
useCommand({
scope: 'Navigation',
name: () => t('nav.settings'),
icon: 'i-ri:settings-3-line',
onActivate() {
router.push('/settings')
},
})
useCommand({
scope: 'Preferences',