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
|
@ -6,6 +6,7 @@ const emit = defineEmits<{
|
|||
}>()
|
||||
|
||||
const all = useUsers()
|
||||
const { busy, singleInstanceServer, oauth } = useSignIn()
|
||||
|
||||
const sorted = computed(() => {
|
||||
return [
|
||||
|
@ -21,6 +22,12 @@ const clickUser = (user: UserLogin) => {
|
|||
else
|
||||
switchUser(user)
|
||||
}
|
||||
const processSignIn = () => {
|
||||
if (singleInstanceServer)
|
||||
oauth()
|
||||
else
|
||||
openSigninDialog()
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -43,7 +50,7 @@ const clickUser = (user: UserLogin) => {
|
|||
:text="$t('user.add_existing')"
|
||||
icon="i-ri:user-add-line"
|
||||
w-full
|
||||
@click="openSigninDialog"
|
||||
@click="processSignIn"
|
||||
/>
|
||||
<CommonDropdownItem
|
||||
is="button"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue