Refactor reply tab disabling

This commit is contained in:
eris 2022-09-09 20:03:53 +00:00
parent d01e1e16b0
commit 8c70bb4301

View file

@ -79,7 +79,15 @@
:in-profile="true"
:footer-slipgate="footerRef"
/>
<div
v-if="!currentUser"
key="replies-disabled"
:label="$t('user_card.replies')"
:title="$t('user_card.replies')"
:disabled="!currentUser"
/>
<Timeline
v-else-if="currentUser"
key="replies"
:label="$t('user_card.replies')"
:count="user.statuses_count"
@ -90,7 +98,6 @@
:user-id="userId"
:in-profile="true"
:footer-slipgate="footerRef"
:disabled="!currentUser"
/>
<div
v-if="followsTabVisible"
@ -120,6 +127,7 @@
</FollowerList>
</div>
<Timeline
v-if="currentUser"
key="media"
:label="$t('user_card.media')"
:embedded="true"
@ -129,7 +137,6 @@
:user-id="userId"
:in-profile="true"
:footer-slipgate="footerRef"
:disabled="!currentUser"
/>
<Timeline
v-if="isUs"