diff --git a/components/ui/ModalCreation.vue b/components/ui/ModalCreation.vue index 2514737de..024f25f5d 100644 --- a/components/ui/ModalCreation.vue +++ b/components/ui/ModalCreation.vue @@ -157,27 +157,7 @@ export default { project_type: projectType.actual, slug: this.slug, description: this.description.trim(), - body: `# Placeholder description -This is your new ${projectType.display}, ${ - this.name - }. A checklist below is provided to help prepare for release. - -### Before submitting for review -- Upload at least one version -- [Edit project description](https://modrinth.com/${this.getProjectType().id}/${ - this.slug - }/edit) -- Update metadata - - Select license - - Set up environments - - Choose categories - - Add source, wiki, Discord and donation links (optional) -- Add images to gallery (optional) -- Invite project team members (optional) - -> Submissions are normally reviewed within 24 hours, but may take up to 48 hours - -Questions? [Join the Modrinth Discord for support!](https://discord.gg/EUHuJHt)`, + body: '', initial_versions: [], team_members: [ { @@ -189,7 +169,7 @@ Questions? [Join the Modrinth Discord for support!](https://discord.gg/EUHuJHt)` categories: [], client_side: this.getClientSide(), server_side: this.getServerSide(), - license_id: 'LicenseRef-All-Rights-Reserved', + license_id: 'LicenseRef-Unknown', is_draft: true, }) ) diff --git a/components/ui/ProjectPublishingChecklist.vue b/components/ui/ProjectPublishingChecklist.vue index 5e660ccc2..4851de10d 100644 --- a/components/ui/ProjectPublishingChecklist.vue +++ b/components/ui/ProjectPublishingChecklist.vue @@ -256,6 +256,20 @@ export default { hide: this.routeName === 'type-id-settings', }, }, + { + condition: this.project.license.id === 'LicenseRef-Unknown', + title: 'Select license', + id: 'select-license', + description: `Select the license your ${this.$formatProjectType( + this.project.project_type + ).toLowerCase()} is distributed under.`, + status: 'required', + link: { + path: 'settings/license', + title: 'Visit license settings', + hide: this.routeName === 'type-id-settings-license', + }, + }, { condition: this.project.status === 'draft', title: 'Submit for review', diff --git a/pages/_type/_id/settings/license.vue b/pages/_type/_id/settings/license.vue index be305ff34..3d58f2f97 100644 --- a/pages/_type/_id/settings/license.vue +++ b/pages/_type/_id/settings/license.vue @@ -88,7 +88,7 @@ type="url" maxlength="2048" placeholder="License URL (optional)" - :disabled="!hasPermission" + :disabled="!hasPermission || licenseId === 'LicenseRef-Unknown'" /> @@ -168,6 +168,12 @@ export default { friendly: 'Custom', short: licenseId.replaceAll('LicenseRef-', ''), } + if (licenseId === 'LicenseRef-Unknown') { + this.license = { + friendly: 'Unknown', + short: licenseId.replaceAll('LicenseRef-', ''), + } + } this.allowOrLater = licenseId.includes('-or-later') this.nonSpdxLicense = licenseId.includes('LicenseRef-') }, @@ -180,7 +186,8 @@ export default { let id = '' if ( (this.nonSpdxLicense && this.license.friendly === 'Custom') || - this.license.short === 'All-Rights-Reserved' + this.license.short === 'All-Rights-Reserved' || + this.license.short === 'Unknown' ) id += 'LicenseRef-' id += this.license.short