Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
Fix modpacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Geometrically committed Feb 6, 2024
1 parent f9b794e commit 15c60cc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions components/ui/ModerationChecklist.vue
Original file line number Diff line number Diff line change
Expand Up @@ -765,11 +765,11 @@ const fileApprovalTypes = ref([
])
const filePermissionTypes = ref([
{
id: 'yes',
id: true,
name: 'Yes',
},
{
id: 'no',
id: false,
name: 'No',
},
])
Expand All @@ -778,17 +778,16 @@ const message = ref('')
const generatedMessage = ref(false)
const loadingMessage = ref(false)
async function generateMessage() {
currentStepIndex.value += 1
loadingMessage.value = true
function printMods(mods, message) {
function printMods(mods, msg) {
if (mods.length === 0) {
return
}
message.value += message
message.value += msg
message.value += '\n\n'
for (const mod in mods) {
for (const mod of mods) {
message.value += `- ${mod}\n`
}
}
Expand All @@ -801,7 +800,7 @@ async function generateMessage() {
const permanentNoMods = []
const unidentifiedMods = []
for (const project in modPackData.value) {
for (const project of modPackData.value) {
if (project.type === 'unknown') {
updateProjects[project.hash] = {
status: project.status,
Expand Down Expand Up @@ -896,6 +895,7 @@ async function generateMessage() {
}
generatedMessage.value = true
loadingMessage.value = false
currentStepIndex.value += 1
await navigateTo(`/${props.project.project_type}/${props.project.slug}/moderation`)
}
Expand Down

0 comments on commit 15c60cc

Please sign in to comment.