fix search import

This commit is contained in:
ThatOneCalculator 2023-04-01 11:39:27 -07:00
parent 04a67200a0
commit 02870df588
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
1 changed files with 5 additions and 4 deletions

View File

@ -14,7 +14,7 @@
<XNotes ref="notes" :pagination="notesPagination"/> <XNotes ref="notes" :pagination="notesPagination"/>
</swiper-slide> </swiper-slide>
<swiper-slide> <swiper-slide>
<XUserList ref="searchEl" class="_gap" :pagination="usersPagination"/> <XUserList ref="users" class="_gap" :pagination="usersPagination"/>
</swiper-slide> </swiper-slide>
</swiper> </swiper>
</MkSpacer> </MkSpacer>
@ -26,6 +26,7 @@ import { computed, watch, onMounted } from 'vue';
import { Virtual } from 'swiper'; import { Virtual } from 'swiper';
import { Swiper, SwiperSlide } from 'swiper/vue'; import { Swiper, SwiperSlide } from 'swiper/vue';
import XNotes from '@/components/MkNotes.vue'; import XNotes from '@/components/MkNotes.vue';
import XUserList from '@/components/MkUserList.vue';
import { i18n } from '@/i18n'; import { i18n } from '@/i18n';
import { definePageMetadata } from '@/scripts/page-metadata'; import { definePageMetadata } from '@/scripts/page-metadata';
import { defaultStore } from '@/store'; import { defaultStore } from '@/store';
@ -55,16 +56,16 @@ const usersPagination = {
})), })),
}; };
const tabs = ['search', 'users']; const tabs = ['notes', 'users'];
let tab = $ref(tabs[0]); let tab = $ref(tabs[0]);
watch($$(tab), () => (syncSlide(tabs.indexOf(tab)))); watch($$(tab), () => (syncSlide(tabs.indexOf(tab))));
const headerActions = $computed(() => []); const headerActions = $computed(() => []);
const headerTabs = $computed(() => [ { const headerTabs = $computed(() => [ {
key: 'search', key: 'notes',
icon: 'ph-magnifying-glass ph-bold ph-lg', icon: 'ph-magnifying-glass ph-bold ph-lg',
title: i18n.ts.search, title: i18n.ts.notes,
}, { }, {
key: 'users', key: 'users',
icon: 'ph-users ph-bold ph-lg', icon: 'ph-users ph-bold ph-lg',