feat: allow running elk with a single server (#1606)
This commit is contained in:
parent
61428cd9cd
commit
53d0812efd
22 changed files with 232 additions and 79 deletions
|
@ -245,6 +245,7 @@ export const provideGlobalCommands = () => {
|
|||
const masto = useMasto()
|
||||
const colorMode = useColorMode()
|
||||
const userSettings = useUserSettings()
|
||||
const { singleInstanceServer, oauth } = useSignIn()
|
||||
|
||||
useCommand({
|
||||
scope: 'Navigation',
|
||||
|
@ -310,7 +311,10 @@ export const provideGlobalCommands = () => {
|
|||
icon: 'i-ri:user-add-line',
|
||||
|
||||
onActivate() {
|
||||
openSigninDialog()
|
||||
if (singleInstanceServer)
|
||||
oauth()
|
||||
else
|
||||
openSigninDialog()
|
||||
},
|
||||
})
|
||||
useCommand({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue