From 8c4fc18237b9b92cd690ac3f0edf69e3f5fdb0d8 Mon Sep 17 00:00:00 2001 From: Jai A Date: Tue, 19 Mar 2024 14:17:33 -0700 Subject: [PATCH] Remove mod inbox --- 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 ee63cc9372..6fc7f97e35 100644 --- a/pages/[type]/[id].vue +++ b/pages/[type]/[id].vue @@ -367,37 +367,6 @@ -
-

Message from the moderators:

-
-

- {{ project.moderator_message.message }} -

-
-
-
- -
-
@@ -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 5f00c44577..1cbf2bda60 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 82c547a9d4..bef2970fa0 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 869a8e8fc5..0000000000 --- a/pages/moderation/messages.vue +++ /dev/null @@ -1,39 +0,0 @@ - - -