Add nag for adding external resources (#918)

This commit is contained in:
triphora
2023-01-14 13:23:10 -05:00
committed by GitHub
parent 6a52d03329
commit 4c1fabffc3
2 changed files with 25 additions and 6 deletions

View File

@@ -235,6 +235,25 @@ export default {
hide: this.routeName === 'type-id-settings-tags',
},
},
{
condition: !(
this.project.issues_url ||
this.project.source_url ||
this.project.wiki_url ||
this.project.discord_url ||
this.project.donation_urls.length > 0
),
title: 'Add external links',
id: 'add-links',
description:
'Add any relevant links targeted outside of Modrinth, such as sources, issues, or a Discord invite.',
status: 'suggestion',
link: {
path: 'settings/links',
title: 'Visit links settings',
hide: this.routeName === 'type-id-settings-links',
},
},
{
hide:
this.project.project_type === 'resourcepack' ||