fix click outside
This commit is contained in:
@@ -14,18 +14,18 @@ export const notesSources = computed(() => ({
|
||||
firebase: initialized.value && user.value
|
||||
}))
|
||||
|
||||
export const availableNotesSources = computed(() =>
|
||||
export const availableNotesSources = computed<notesSourceValues[]>(() =>
|
||||
Object.entries(notesSources.value)
|
||||
.filter(([, enabled]) => enabled)
|
||||
.map(([source]) => source)
|
||||
.map(([source]) => source as notesSourceValues)
|
||||
)
|
||||
|
||||
export type notesSourceValues = keyof typeof notesSources.value | null
|
||||
export type notesSourceValues = keyof typeof notesSources.value
|
||||
|
||||
export const activeNotesSource = ref<notesSourceValues>(null)
|
||||
export const activeNotesSource = ref<notesSourceValues | null>(null)
|
||||
|
||||
watchEffect(() => {
|
||||
const getSource = (): notesSourceValues => {
|
||||
const getSource = (): notesSourceValues | null => {
|
||||
if (!initialized.value) return null
|
||||
if (
|
||||
preferredNotesSource.value &&
|
||||
|
||||
Reference in New Issue
Block a user