Skip to content

Commit

Permalink
Merge pull request IsThereAnyDeal#1901 from candela97/fixup-ignored-o…
Browse files Browse the repository at this point in the history
…wned-props

Shorten some property and function names too
  • Loading branch information
tfedor authored Apr 13, 2024
2 parents 5726a76 + 91e319d commit a3afdb4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/js/Background/Modules/SteamStoreApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,18 +153,18 @@ class SteamStoreApi extends Api {
const {rgOwnedApps, rgOwnedPackages, rgIgnoredApps, rgWishlist} = store;

const ignored = [];
const ignoredOwnedElsewhere = [];
const ignoredOwned = [];
Object.entries(rgIgnoredApps).forEach(([appid, value]) => {
if (value === 0) {
ignored.push(Number(appid));
} else if (value === 2) {
ignoredOwnedElsewhere.push(Number(appid));
ignoredOwned.push(Number(appid));
}
});

const dynamicStore = {
ignored,
ignoredOwnedElsewhere,
ignoredOwned,
"ownedApps": rgOwnedApps,
"ownedPackages": rgOwnedPackages,
"wishlisted": rgWishlist,
Expand Down
4 changes: 2 additions & 2 deletions src/js/Content/Features/Common/FHighlightsTags.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default class FHighlightsTags extends Feature {
operations.push(this.highlightIgnored);
}
if (opts.ignoredOwned && dsStatus[storeId].ignoredOwned) {
operations.push(this.highlightIgnoredOwnedElsewhere);
operations.push(this.highlightIgnoredOwned);
}
}

Expand Down Expand Up @@ -332,7 +332,7 @@ export default class FHighlightsTags extends Feature {
this._highlightItem(node, "notinterested");
}

static highlightIgnoredOwnedElsewhere(node) {
static highlightIgnoredOwned(node) {
this._highlightItem(node, "ignored_owned");
}

Expand Down
2 changes: 1 addition & 1 deletion src/js/Content/Modules/Data/DynamicStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class DynamicStore {
const trimmedId = trimmedIds[i];
acc[id] = {
"ignored": dsStatus[trimmedId].includes("ignored"),
"ignoredOwned": dsStatus[trimmedId].includes("ignoredOwnedElsewhere"),
"ignoredOwned": dsStatus[trimmedId].includes("ignoredOwned"),
"wishlisted": dsStatus[trimmedId].includes("wishlisted"),
};
if (id.startsWith("app/")) {
Expand Down

0 comments on commit a3afdb4

Please sign in to comment.