diff --git a/pages/_type/_id.vue b/pages/_type/_id.vue index a5e924e4b..9f30f8aac 100644 --- a/pages/_type/_id.vue +++ b/pages/_type/_id.vue @@ -37,7 +37,7 @@

@@ -417,7 +417,7 @@
@@ -429,7 +429,7 @@
@@ -663,6 +663,10 @@ export default { } } + project.actualProjectType = JSON.parse( + JSON.stringify(project.project_type) + ) + project.project_type = data.$getProjectTypeForUrl( project.project_type, Object.keys(projectLoaders) diff --git a/pages/_type/_id/edit.vue b/pages/_type/_id/edit.vue index 1a6b3bc9e..8a06a403f 100644 --- a/pages/_type/_id/edit.vue +++ b/pages/_type/_id/edit.vue @@ -135,8 +135,9 @@

Additional Categories

- Select up to 3 categories that will help others
- find your project. + Select more categories that will help others
+ find your project. These are searchable, but not
+ displayed in search.
- x.project_type === this.project.project_type && + x.project_type === this.project.actualProjectType && !this.newProject.additional_categories.includes(x.name) ) .map((it) => it.name) @@ -633,7 +634,7 @@ export default { this.selectableAdditionalCategories = this.$tag.categories .filter( (x) => - x.project_type === this.project.project_type && + x.project_type === this.project.actualProjectType && !this.newProject.categories.includes(x.name) ) .map((it) => it.name) diff --git a/pages/_type/_id/version.vue b/pages/_type/_id/version.vue index 1a3f917c7..8a8569959 100644 --- a/pages/_type/_id/version.vue +++ b/pages/_type/_id/version.vue @@ -218,7 +218,7 @@ $tag.loaders .filter((x) => x.supported_project_types.includes( - project.project_type.toLowerCase() + project.actualProjectType.toLowerCase() ) ) .map((it) => it.name) @@ -528,10 +528,10 @@ multiple class="choose-files" :accept=" - project.project_type.toLowerCase() === 'modpack' + project.actualProjectType.toLowerCase() === 'modpack' ? '.mrpack,application/x-modrinth-modpack+zip' : project.project_type.toLowerCase() === 'mod' - ? '.jar,application/java-archive' + ? '.jar,actualProjectType/java-archive' : '*' " prompt="Choose files or drag them here"