modrinth / knossos

Our Vue-based frontend with server-side rendering and caching for great user experience, speed, and compatibility.

Home Page:https://modrinth.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should you be able to report your own project?

AdamRaichu opened this issue · comments

Is your suggested enhancement related to a problem? Please describe.

In the action menu on a project page (the triple dot button), there is a report button as well as a copy project id button. Now I realize that this isn't clear cut, but, is there any circumstance where reporting a project you are the owner of makes sense?

Describe the solution you'd like

The report button should not be shown on projects that you are the owner of.

Describe alternatives you've considered

Maybe there's a scenario where this makes sense? If there is, please comment with it because I can't think of one. I also recognize that this may not be possible with react. I don't use it, so I don't know.

Additional context

Screenshot of the menu in question. I'm logged in and the owner of this project, and the report flag is visible.

image

Relevant portion of the site:

<OverflowMenu
class="btn icon-only"
:options="[
{
id: 'report',
action: () => reportProject(project.id),
color: 'red',
hoverOnly: true,
},
{ id: 'copy-id', action: () => copyId() },
]"
:direction="cosmetics.projectLayout ? 'left' : 'right'"
>
<MoreHorizontalIcon />
<template #report> <ReportIcon /> Report</template>
<template #copy-id> <ClipboardCopyIcon /> Copy ID</template>
</OverflowMenu>