fix: use masto.loginTo
to update masto api (#474)
This commit is contained in:
parent
ab4321ad33
commit
60a8673757
8 changed files with 19 additions and 14 deletions
|
@ -204,6 +204,7 @@ export const provideGlobalCommands = () => {
|
|||
const { locale, t } = useI18n()
|
||||
const { locales } = useI18n() as { locales: ComputedRef<LocaleObject[]> }
|
||||
const users = useUsers()
|
||||
const masto = useMasto()
|
||||
|
||||
useCommand({
|
||||
scope: 'Actions',
|
||||
|
@ -299,7 +300,7 @@ export const provideGlobalCommands = () => {
|
|||
icon: 'i-ri:user-shared-line',
|
||||
|
||||
onActivate() {
|
||||
loginTo(user)
|
||||
masto.loginTo(user)
|
||||
},
|
||||
})))
|
||||
useCommand({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue