mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-28 21:08:52 -07:00
[client] Don't load inactive tabs in search
This commit is contained in:
parent
a703638199
commit
16057fb237
1 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@
|
||||||
@slide-change="onSlideChange"
|
@slide-change="onSlideChange"
|
||||||
>
|
>
|
||||||
<swiper-slide>
|
<swiper-slide>
|
||||||
<template v-if="$i">
|
<template v-if="$i && tabs[swiperRef!.activeIndex] == 'notes'">
|
||||||
<template v-if="query == null || query.trim().length < 1">
|
<template v-if="query == null || query.trim().length < 1">
|
||||||
<transition :name="$store.state.animation ? 'zoom' : ''" appear>
|
<transition :name="$store.state.animation ? 'zoom' : ''" appear>
|
||||||
<div class="_fullinfo" ref="notes">
|
<div class="_fullinfo" ref="notes">
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
<XNotes ref="notes" :pagination="notesPagination" />
|
<XNotes ref="notes" :pagination="notesPagination" />
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template>
|
||||||
<transition :name="$store.state.animation ? 'zoom' : ''" appear>
|
<transition :name="$store.state.animation ? 'zoom' : ''" appear>
|
||||||
<div class="_fullinfo" ref="notes">
|
<div class="_fullinfo" ref="notes">
|
||||||
<img
|
<img
|
||||||
|
@ -76,7 +76,7 @@
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else-if="tabs[swiperRef!.activeIndex] == 'users'">
|
||||||
<XUserList
|
<XUserList
|
||||||
ref="users"
|
ref="users"
|
||||||
class="_gap"
|
class="_gap"
|
||||||
|
|
Loading…
Reference in a new issue