[client] Don't load inactive tabs in search

This commit is contained in:
Laura Hausmann 2023-11-19 02:26:10 +01:00
parent a703638199
commit 16057fb237
Signed by: zotan
GPG key ID: D044E84C5BE01605

View file

@ -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"