Moderation checklist (#1635)

* Moderation checklist

* Skip button

* Fix modpacks

* Fix modpack types not being sent

* Fixes

* remove explainer

* pass auth to analytics
This commit is contained in:
Geometrically
2024-02-21 16:11:11 -07:00
committed by GitHub
parent 5ea71da181
commit cb1c8be870
4 changed files with 1073 additions and 4 deletions

View File

@@ -415,10 +415,6 @@
:auth="auth"
:tags="tags"
/>
<MessageBanner v-else-if="project.status === 'withheld'" message-type="warning">
{{ project.title }} has been removed from search by Modrinth's moderators. Please use
{{ project.title }} at your own risk.
</MessageBanner>
<MessageBanner v-if="project.status === 'archived'" message-type="warning">
{{ project.title }} has been archived. {{ project.title }} will not receive any further
updates unless the author decides to unarchive the project.
@@ -755,6 +751,11 @@
</div>
</div>
</div>
<ModerationChecklist
v-if="auth.user && tags.staffRoles.includes(auth.user.role) && showModerationChecklist"
:project="project"
:reset-project="resetProject"
/>
</div>
</template>
<script setup>
@@ -815,6 +816,7 @@ import Breadcrumbs from '~/components/ui/Breadcrumbs.vue'
import { userCollectProject } from '~/composables/user.js'
import CollectionCreateModal from '~/components/ui/CollectionCreateModal.vue'
import OrganizationIcon from '~/assets/images/utils/organization.svg'
import ModerationChecklist from '~/components/ui/ModerationChecklist.vue'
const data = useNuxtApp()
const route = useRoute()
@@ -1207,6 +1209,11 @@ async function copyId() {
}
const collapsedChecklist = ref(false)
const showModerationChecklist = ref(false)
if (process.client && history && history.state && history.state.showChecklist) {
showModerationChecklist.value = true
}
</script>
<style lang="scss" scoped>
.header {