mirror of
https://github.com/WowUp/WowUp.git
synced 2026-04-23 15:27:03 -04:00
Merge pull request #363 from linaori/fix/ignored-addons-are-not-updates
Ignored addons should not be counted as updates (wowup addon)
This commit is contained in:
@@ -34,9 +34,11 @@ export class WowUpAddonService {
|
||||
const dataFile = this._addonService.getFullInstallPath(wowupAddon) + "/data.lua";
|
||||
|
||||
const wowUpAddonData: WowUpAddonData = {
|
||||
updatesAvailableCount: addons.filter((addon: Addon) => addon.latestVersion !== addon.installedVersion).length,
|
||||
generatedAt: (new Date()).toString(),
|
||||
}
|
||||
updatesAvailableCount: addons.filter(
|
||||
(addon: Addon) => !addon.isIgnored && addon.latestVersion !== addon.installedVersion
|
||||
).length,
|
||||
generatedAt: new Date().toString(),
|
||||
};
|
||||
|
||||
if (!this.compiledTemplate) {
|
||||
this.compiledTemplate = Handlebars.compile(templateContents);
|
||||
@@ -48,4 +50,3 @@ export class WowUpAddonService {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user