elk/composables/dialog.ts

12 lines
273 B
TypeScript
Raw Normal View History

2022-11-23 05:25:48 +01:00
export const isUserSwitcherOpen = ref(false)
2022-11-23 04:48:01 +01:00
export const isSigninDialogOpen = ref(false)
2022-11-23 05:25:48 +01:00
export function openUserSwitcher() {
isUserSwitcherOpen.value = true
2022-11-23 04:48:01 +01:00
}
export function openSigninDialog() {
isSigninDialogOpen.value = true
2022-11-23 05:25:48 +01:00
isUserSwitcherOpen.value = false
2022-11-23 04:48:01 +01:00
}