Fix a bug & add improvements to a couple moderation aspects (#278)

This PR fixes reports on the moderation dashboard going to `/dashboard/mod/_id` instead of to `/mod/_id`.
It also allows the ability for moderators to unlist mods in the queue from the frontend instead of having to do it via the backend.
![image](https://i.imgur.com/x8shSVn.png)
Unlisted mods should have the ability to resubmit for approval, so I've also changed "Submit for Review" to "Submit for approval", allowing unlisted mods to do that as well.
![image](https://i.imgur.com/OC8Vyfo.png)
This commit is contained in:
Emma
2021-07-02 12:58:29 -04:00
committed by GitHub
parent a58811b1bf
commit 979b5eb89c
3 changed files with 14 additions and 6 deletions

View File

@@ -9,13 +9,13 @@
Back
</nuxt-link>
<button
v-if="mod.status === 'rejected' || mod.status === 'draft'"
title="Submit for Review"
v-if="mod.status === 'rejected' || 'draft' || 'unlisted'"
title="Submit for approval"
class="button column"
:disabled="!this.$nuxt.$loading"
@click="saveModReview"
>
Submit for Review
Submit for approval
</button>
<button
title="Save"

View File

@@ -12,12 +12,12 @@
Save draft
</button>
<button
title="Create"
title="Submit for review"
class="brand-button column"
:disabled="!this.$nuxt.$loading"
@click="createMod"
>
Create
Submit for review
</button>
</header>
<section class="essentials">