diff --git a/src/App.vue b/src/App.vue index 30168f0..13015a3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,8 +1,7 @@ @@ -34,7 +36,7 @@ provide('firebaseAuthUI', firebaseAuthUI) class="transition[margin-left] z-10 mt-[50px] w-full border-x-[1px] bg-white px-10 py-6 duration-200 ease-out" :class="sideBarCollapsed ? 'ml-0' : 'ml-sidebar max-sm:hidden'" > - + import { rootNote, notes, setActiveNote as baseSetActiveNote } from '@/composables/useNotes' import { windowIsMobile } from '@/utils/helpers' -import { initialized } from '@/composables/useFirebase' -import { activeViewMode } from '@/composables/useViewMode'; +import { activeViewMode } from '@/composables/useViewMode' + +const loading = inject('loading') const props = defineProps<{ viewModes: ViewMode[] @@ -36,7 +37,7 @@ const setViewMode = (viewMode: ViewMode) => { icon="fas fa-fw fa-home" @click="setActiveNote(rootNote?.id)" :title="rootNote?.title" - v-if="initialized" + v-if="!loading" > {{ rootNote?.title }} @@ -46,7 +47,7 @@ const setViewMode = (viewMode: ViewMode) => { View mode - + { Recent notes - + ('loading') + const props = defineProps<{ sideBarCollapsed: boolean }>() @@ -42,7 +44,7 @@ const authModalInitialStateOpen = ref(authUI.isPendingRedirect()) /> - + (searchActive = active)" />