fix(frontend): redirect report button to signin if needed (#2953)

Fixes #2951
This commit is contained in:
Erb3
2024-12-07 20:45:32 +01:00
committed by GitHub
parent b8957d386a
commit 88b1a370d4
2 changed files with 4 additions and 2 deletions

View File

@@ -68,7 +68,7 @@
{ divider: true, shown: auth.user && auth.user.id === user.id },
{
id: 'report',
action: () => reportUser(user.id),
action: () => (auth.user ? reportUser(user.id) : navigateTo('/auth/sign-in')),
color: 'red',
hoverOnly: true,
shown: auth.user?.id !== user.id,