forked from Mirrors/elk
fix(ui): remove a duplicated command (#2718)
This commit is contained in:
parent
28514e956d
commit
587c063aba
1 changed files with 0 additions and 12 deletions
|
@ -245,24 +245,12 @@ export function useCommands(cmds: () => CommandProvider[]) {
|
||||||
export function provideGlobalCommands() {
|
export function provideGlobalCommands() {
|
||||||
const { locale, t } = useI18n()
|
const { locale, t } = useI18n()
|
||||||
const { locales } = useI18n() as { locales: ComputedRef<LocaleObject[]> }
|
const { locales } = useI18n() as { locales: ComputedRef<LocaleObject[]> }
|
||||||
const router = useRouter()
|
|
||||||
const users = useUsers()
|
const users = useUsers()
|
||||||
const masto = useMasto()
|
const masto = useMasto()
|
||||||
const colorMode = useColorMode()
|
const colorMode = useColorMode()
|
||||||
const userSettings = useUserSettings()
|
const userSettings = useUserSettings()
|
||||||
const { singleInstanceServer, oauth } = useSignIn()
|
const { singleInstanceServer, oauth } = useSignIn()
|
||||||
|
|
||||||
useCommand({
|
|
||||||
scope: 'Navigation',
|
|
||||||
|
|
||||||
name: () => t('nav.settings'),
|
|
||||||
icon: 'i-ri:settings-3-line',
|
|
||||||
|
|
||||||
onActivate() {
|
|
||||||
router.push('/settings')
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
useCommand({
|
useCommand({
|
||||||
scope: 'Preferences',
|
scope: 'Preferences',
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue