mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 06:46:04 +02:00
fix: load mutual friends button and mutual opt-out status in friend list
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { ArrowUpDown, User, UserMinus } from 'lucide-vue-next';
|
||||
import { ArrowUpDown, EyeOff, User, UserMinus } from 'lucide-vue-next';
|
||||
import {
|
||||
Avatar,
|
||||
AvatarFallback,
|
||||
@@ -391,7 +391,21 @@ export const createColumns = ({
|
||||
},
|
||||
cell: ({ row }) => {
|
||||
const count = row.original?.$mutualCount;
|
||||
return count ? <span>{count}</span> : null;
|
||||
const optedOut = row.original?.$mutualOptedOut;
|
||||
if (!count && !optedOut) return null;
|
||||
return (
|
||||
<span class="inline-flex items-center gap-1">
|
||||
{count || null}
|
||||
{optedOut ? (
|
||||
<TooltipWrapper
|
||||
side="top"
|
||||
content={t('table.friendList.mutualOptedOut')}
|
||||
>
|
||||
<EyeOff class="h-3.5 w-3.5 text-muted-foreground" />
|
||||
</TooltipWrapper>
|
||||
) : null}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user