From a77169534835c9a79d3b9c5ae2235e85c39057e3 Mon Sep 17 00:00:00 2001
From: Geometrically <18202329+Geometrically@users.noreply.github.com>
Date: Tue, 19 Mar 2024 17:36:09 -0700
Subject: [PATCH] Remove mod inbox (#1661)
---
pages/[type]/[id].vue | 64 +++-----------------------------
pages/[type]/[id]/moderation.vue | 13 ++-----
pages/moderation.vue | 3 --
pages/moderation/messages.vue | 39 -------------------
4 files changed, 9 insertions(+), 110 deletions(-)
delete mode 100644 pages/moderation/messages.vue
diff --git a/pages/[type]/[id].vue b/pages/[type]/[id].vue
index ee63cc937..6fc7f97e3 100644
--- a/pages/[type]/[id].vue
+++ b/pages/[type]/[id].vue
@@ -367,37 +367,6 @@
-
@@ -770,10 +741,12 @@ import {
Checkbox,
ChartIcon,
renderString,
+ isRejected,
+ isUnderReview,
+ isStaff,
} from 'omorphia'
import CrownIcon from '~/assets/images/utils/crown.svg'
import CalendarIcon from '~/assets/images/utils/calendar.svg'
-import ClearIcon from '~/assets/images/utils/clear.svg'
import DownloadIcon from '~/assets/images/utils/download.svg'
import UpdateIcon from '~/assets/images/utils/updated.svg'
import QueuedIcon from '~/assets/images/utils/list-end.svg'
@@ -1042,31 +1015,6 @@ if (!route.name.startsWith('type-id-settings')) {
const onUserCollectProject = useClientTry(userCollectProject)
-async function clearMessage() {
- startLoading()
-
- try {
- await useBaseFetch(`project/${project.value.id}`, {
- method: 'PATCH',
- body: {
- moderation_message: null,
- moderation_message_body: null,
- },
- })
-
- project.value.moderator_message = null
- } catch (err) {
- data.$notify({
- group: 'main',
- title: 'An error occurred',
- text: err.data.description,
- type: 'error',
- })
- }
-
- stopLoading()
-}
-
async function setProcessing() {
startLoading()
diff --git a/pages/[type]/[id]/moderation.vue b/pages/[type]/[id]/moderation.vue
index 5f00c4457..1cbf2bda6 100644
--- a/pages/[type]/[id]/moderation.vue
+++ b/pages/[type]/[id]/moderation.vue
@@ -75,8 +75,9 @@
Messages
This is a private conversation thread with the Modrinth moderators. They may message you
- with issues concerning this project. Additionally, you are welcome to start a discussion
- here regarding this project and its status.
+ with issues concerning this project. This thread is only checked when you submit your
+ project for review. For additional inquiries, contact
+ Modrinth support.
useBaseFetch(`thread/${props.project.thread_id}`)
@@ -140,13 +140,6 @@ async function setStatus(status) {
body: data,
})
- if (tags.value.staffRoles.includes(auth.value.user.role)) {
- await useBaseFetch(`thread/${props.project.thread_id}/read`, {
- method: 'POST',
- body: data,
- })
- }
-
const project = props.project
project.status = status
await props.resetProject()
diff --git a/pages/moderation.vue b/pages/moderation.vue
index 82c547a9d..bef2970fa 100644
--- a/pages/moderation.vue
+++ b/pages/moderation.vue
@@ -10,9 +10,6 @@
-
-
-
diff --git a/pages/moderation/messages.vue b/pages/moderation/messages.vue
deleted file mode 100644
index 869a8e8fc..000000000
--- a/pages/moderation/messages.vue
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
-
-
-