Skip to content

Commit 180e3fd

Browse files
committed
v2.2.1.2
1 parent 74600d5 commit 180e3fd

3 files changed

Lines changed: 12 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Version 2.2.1.2 - Wait I didn't push this a week ago?
2+
- Fixed an issue where I used `game.i18n.translations.SETTINGS.Configure` instead of `game.i18n.localize('SETTINGS.Configure')`
3+
- Fixed **Expanded Module Dependencies** dialog from not showing when only recommended modules are missing
4+
- Fixed System name from being overwritten by system version
5+
16
# Version 2.2.1.1 - Is it really a changelog with only one change?
27
- Attempted fix for Replacing Foundry VTTs v11 Info Tag since it appears my Website Tag already does this.
38

scripts/init.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ Hooks.once('ready', async () => {
104104
}, []));
105105

106106
const requires = getValidRelationship(Array.from(module?.relationships?.requires ?? []), false);
107-
const recommends = getValidRelationship(Array.from(module?.relationships?.recommends ?? []), true);
107+
const recommends = getValidRelationship(Array.from(module?.relationships?.recommends ?? (Array.from(module?.relationships?.flags?.recommends ?? []))), true);
108108
const optionals = getValidRelationship(Array.from(module?.relationships?.optional ?? (Array.from(module?.relationships?.flags?.optional ?? []))), true);
109109

110110
// If Dependencies is Empty
111-
if (!(requires?.length ?? 0) && !(optionals?.length ?? 0)) return false;
111+
if (!(requires?.length ?? 0) && !(recommends?.length ?? 0) && !(optionals?.length ?? 0)) return false;
112112

113113
// Add Required Module Details to Requires;
114114
MODULE.log('recommends', recommends);

scripts/module.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ export class MMP {
773773

774774
// Add Setting Tag if Module has Editable Tags
775775
if (hasSettings?.[moduleKey] ?? false) {
776-
elemPackage.querySelector('.package-overview').insertAdjacentHTML('beforeend', `<span class="tag settings" data-tooltip="${game.i18n.translations.SETTINGS.Configure}" aria-describedby="tooltip">
776+
elemPackage.querySelector('.package-overview').insertAdjacentHTML('beforeend', `<span class="tag settings" data-tooltip="${game.i18n.localize('SETTINGS.Configure')}" aria-describedby="tooltip">
777777
<i class="fa-solid fa-gear"></i>
778778
</span>`);
779779
}
@@ -1283,13 +1283,13 @@ export class MMP {
12831283
type: game.i18n.localize("Software"),
12841284
channel: game.data.coreUpdate.channel,
12851285
version: game.data.coreUpdate.version
1286-
})}"></i> ` : ''}v${game.version}`;
1287-
1288-
elem[0].querySelector('#game-details li.system span').innerHTML = `${game.data.systemUpdate.hasUpdate ? `<i class="notification-pip update fas fa-exclamation-circle" data-action="system-update" data-tooltip="${game.i18n.format("SETUP.UpdateAvailable", {
1286+
})}"></i> ` : ''}v${game.version}`;
1287+
''
1288+
elem[0].querySelector(isNewerVersion(game.version, "11") ? '#game-details li.system span.system-info' : '#game-details li.system span').innerHTML = `${game.data.systemUpdate.hasUpdate ? `<i class="notification-pip update fas fa-exclamation-circle" data-action="system-update" data-tooltip="${game.i18n.format("SETUP.UpdateAvailable", {
12891289
type: game.i18n.localize("System"),
12901290
channel: game.data.system.title,
12911291
version: game.data.systemUpdate.version
1292-
})}"></i> ` : ''}v${game.system.version}`;
1292+
})}"></i> ` : ''}v${game.system.version}`;
12931293

12941294
if (readme || changelog || attributions || license) {
12951295
elem[0].querySelector('#game-details li.system').insertAdjacentHTML('afterend', '<li class="system-buttons"></li>');

0 commit comments

Comments
 (0)