diff --git a/components/ui/ModalCreation.vue b/components/ui/ModalCreation.vue index c92e84397..e02d3a2ea 100644 --- a/components/ui/ModalCreation.vue +++ b/components/ui/ModalCreation.vue @@ -115,6 +115,26 @@ export default { getProjectType() { return this.$tag.projectTypes.find((x) => this.projectType === x.display) }, + getClientSide() { + switch (this.getProjectType().id) { + case 'plugin': + return 'unsupported' + case 'resourcepack': + return 'required' + default: + return 'unknown' + } + }, + getServerSide() { + switch (this.getProjectType().id) { + case 'plugin': + return 'required' + case 'resourcepack': + return 'unsupported' + default: + return 'unknown' + } + }, async createProject() { this.$nuxt.$loading.start() @@ -159,8 +179,8 @@ Questions? [Join the Modrinth Discord for support!](https://discord.gg/EUHuJHt)` }, ], categories: [], - client_side: 'unknown', - server_side: 'unknown', + client_side: this.getClientSide(), + server_side: this.getServerSide(), license_id: this.$tag.licenses.map((it) => it.short).includes('arr') ? 'arr' : this.$tag.licenses[0].short, diff --git a/pages/_type/_id.vue b/pages/_type/_id.vue index 43f6f35a3..7e8ee329d 100644 --- a/pages/_type/_id.vue +++ b/pages/_type/_id.vue @@ -267,6 +267,14 @@ Your project must have at least one version to submit for review. +