mirror of
https://github.com/modrinth/code.git
synced 2026-08-26 09:34:50 +00:00
@@ -147,15 +147,15 @@ const messages = defineMessages({
|
||||
},
|
||||
benefitJoin: {
|
||||
id: 'modal.shared-instance.open-in-app.benefit.join',
|
||||
defaultMessage: 'Join the shared instance in one click',
|
||||
defaultMessage: 'Play the same content as your friends',
|
||||
},
|
||||
benefitInstall: {
|
||||
id: 'modal.shared-instance.open-in-app.benefit.install',
|
||||
defaultMessage: 'Automatically install the required game and loader',
|
||||
defaultMessage: 'Automatically install everything they’re playing',
|
||||
},
|
||||
benefitUpdate: {
|
||||
id: 'modal.shared-instance.open-in-app.benefit.update',
|
||||
defaultMessage: 'Keep shared content updated when the instance changes',
|
||||
defaultMessage: 'Keep shared content up to date as it changes',
|
||||
},
|
||||
openingAutomatically: {
|
||||
id: 'modal.shared-instance.open-in-app.opening-automatically',
|
||||
|
||||
@@ -123,7 +123,10 @@
|
||||
{{ report.version.files.find((f) => f.primary)?.filename || 'Unknown Version' }}
|
||||
</span>
|
||||
<span
|
||||
v-if="report.item_type === 'shared-instance' && report.shared_instance_version_id"
|
||||
v-if="
|
||||
report.item_type === 'shared-instance' &&
|
||||
report.shared_instance_version_id !== undefined
|
||||
"
|
||||
class="text-sm text-secondary"
|
||||
>
|
||||
Version {{ report.shared_instance_version_id }}
|
||||
@@ -520,9 +523,10 @@ async function loadSharedInstanceDetails() {
|
||||
}
|
||||
|
||||
const reportedVersion = props.report.shared_instance_version_id
|
||||
const versionNumbers = reportedVersion
|
||||
? Array.from({ length: reportedVersion }, (_, index) => reportedVersion - index)
|
||||
: []
|
||||
const versionNumbers =
|
||||
reportedVersion !== undefined
|
||||
? Array.from({ length: reportedVersion + 1 }, (_, index) => reportedVersion - index)
|
||||
: []
|
||||
const [versionDetails, otherInstancesResult] = await Promise.all([
|
||||
Promise.all(
|
||||
versionNumbers.map(async (versionNumber) => {
|
||||
|
||||
@@ -2928,13 +2928,13 @@
|
||||
"message": "Email verification required"
|
||||
},
|
||||
"modal.shared-instance.open-in-app.benefit.install": {
|
||||
"message": "Automatically install the required game and loader"
|
||||
"message": "Automatically install everything they’re playing"
|
||||
},
|
||||
"modal.shared-instance.open-in-app.benefit.join": {
|
||||
"message": "Join the shared instance in one click"
|
||||
"message": "Play the same content as your friends"
|
||||
},
|
||||
"modal.shared-instance.open-in-app.benefit.update": {
|
||||
"message": "Keep shared content updated when the instance changes"
|
||||
"message": "Keep shared content up to date as it changes"
|
||||
},
|
||||
"modal.shared-instance.open-in-app.get-app": {
|
||||
"message": "Get Modrinth App"
|
||||
|
||||
Reference in New Issue
Block a user