You've already forked AstralRinth
forked from didirus/AstralRinth
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:
@@ -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
|
||||
: ''
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user