Skip to content

Commit

Permalink
fix(ui): remove a duplicated command (#2718)
Browse files Browse the repository at this point in the history
  • Loading branch information
lazzzis committed Mar 30, 2024
1 parent 28514e9 commit 587c063
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions composables/command.ts
Expand Up @@ -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',

Expand Down

0 comments on commit 587c063

Please sign in to comment.