Fix moderation queue, moderation status card when approved, and invalid datapack packages (#907)

* Fool behavior

* Add leading underscore to packaged datapack package if it starts with a number

* Hide mod status card for all approved statuses without mod messages

* Fix project id sanitization
This commit is contained in:
Prospector
2023-01-11 15:21:39 -08:00
committed by GitHub
parent c67bc33c23
commit 17f00e6fea
4 changed files with 20 additions and 10 deletions

View File

@@ -280,9 +280,7 @@
<div
v-if="
currentMember &&
((project.status !== 'approved' &&
project.status !== 'unlisted' &&
project.status !== 'draft' &&
((!$tag.approvedStatuses.includes(project.status) &&
project.status !== 'processing') ||
(project.moderator_message &&
(project.moderator_message.message ||

View File

@@ -269,10 +269,10 @@ export default {
},
onModalClose() {
this.projects.splice(
this.projects.findIndex((x) => this.project.id === x.id),
this.projects.findIndex((x) => this.currentProject.id === x.id),
1
)
this.project = null
this.currentProject = null
},
async deleteReport(index) {
this.$nuxt.$loading.start()