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

@@ -133,10 +133,10 @@ export default {
this.$defaultHeaders()
)
this.$refs.modal.hide()
if (this.onClose !== null) {
this.onClose()
}
this.$refs.modal.hide()
} catch (err) {
this.$notify({
group: 'main',
@@ -151,11 +151,15 @@ export default {
show() {
this.$refs.modal.show()
this.moderationMessage =
this.project && this.project.moderator_message.message
this.project &&
this.project.moderator_message &&
this.project.moderator_message.message
? this.project.moderator_message.message
: ''
this.moderationMessageBody =
this.project && this.project.moderator_message.body
this.project &&
this.project.moderator_message &&
this.project.moderator_message.body
? this.project.moderator_message.body
: ''
},