ux: should not show follow requests tab when have no pending sent follow req
This commit is contained in:
parent
0959dec291
commit
e580b92c37
6 changed files with 18 additions and 1 deletions
|
|
@ -50,6 +50,7 @@ import { i18n } from '@/i18n.js';
|
|||
import { definePageMetadata } from '@/scripts/page-metadata.js';
|
||||
import { infoImageUrl } from '@/instance.js';
|
||||
import MkHorizontalSwipe from '@/components/MkHorizontalSwipe.vue';
|
||||
import { $i } from '@/account';
|
||||
|
||||
const paginationComponent = shallowRef<InstanceType<typeof MkPagination>>();
|
||||
|
||||
|
|
@ -94,7 +95,7 @@ const headerTabs = computed(() => [
|
|||
},
|
||||
]);
|
||||
|
||||
const tab = ref('list');
|
||||
const tab = ref($i?.hasPendingSentFollowRequest ? 'sent' : 'list');
|
||||
|
||||
definePageMetadata(() => ({
|
||||
title: i18n.ts.followRequests,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue