summaryrefslogtreecommitdiff
path: root/packages/frontend/src/pages/explore.users.vue
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-08-28 11:15:17 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-08-28 11:15:17 +0900
commit3e2441998107d37f9d0f683430c5dedd4c5cd0b5 (patch)
treee3233f6d16d53a08bf4e9e301a39a23a8ef4b92f /packages/frontend/src/pages/explore.users.vue
parentbuild-misskey-js-with-types (#16470) (diff)
downloadmisskey-3e2441998107d37f9d0f683430c5dedd4c5cd0b5.tar.gz
misskey-3e2441998107d37f9d0f683430c5dedd4c5cd0b5.tar.bz2
misskey-3e2441998107d37f9d0f683430c5dedd4c5cd0b5.zip
refactor
Diffstat (limited to 'packages/frontend/src/pages/explore.users.vue')
-rw-r--r--packages/frontend/src/pages/explore.users.vue13
1 files changed, 4 insertions, 9 deletions
diff --git a/packages/frontend/src/pages/explore.users.vue b/packages/frontend/src/pages/explore.users.vue
index 72f2a6813c..08f9f5e582 100644
--- a/packages/frontend/src/pages/explore.users.vue
+++ b/packages/frontend/src/pages/explore.users.vue
@@ -30,7 +30,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</template>
</div>
<div v-else>
- <MkFoldableSection ref="tagsEl" :foldable="true" :expanded="false" class="_margin">
+ <MkFoldableSection :foldable="true" :expanded="false" class="_margin">
<template #header><i class="ti ti-hash ti-fw" style="margin-right: 0.5em;"></i>{{ i18n.ts.popularTags }}</template>
<div>
@@ -39,7 +39,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</div>
</MkFoldableSection>
- <MkFoldableSection v-if="tag != null" :key="`${tag}`" class="_margin">
+ <MkFoldableSection v-if="tagUsersPaginator != null" :key="`${tag}`" class="_margin">
<template #header><i class="ti ti-hash ti-fw" style="margin-right: 0.5em;"></i>{{ tag }}</template>
<MkUserList :paginator="tagUsersPaginator"/>
</MkFoldableSection>
@@ -78,22 +78,17 @@ const props = defineProps<{
}>();
const origin = ref('local');
-const tagsEl = useTemplateRef('tagsEl');
const tagsLocal = ref<Misskey.entities.Hashtag[]>([]);
const tagsRemote = ref<Misskey.entities.Hashtag[]>([]);
-watch(() => props.tag, () => {
- if (tagsEl.value) tagsEl.value.toggleContent(props.tag == null);
-});
-
-const tagUsersPaginator = markRaw(new Paginator('hashtags/users', {
+const tagUsersPaginator = props.tag != null ? markRaw(new Paginator('hashtags/users', {
limit: 30,
params: {
tag: props.tag,
origin: 'combined',
sort: '+follower',
},
-}));
+})) : null;
const pinnedUsersPaginator = markRaw(new Paginator('pinned-users', {
noPaging: true,