chore(webui): clean up listing for rivens with pending challenges
All checks were successful
Build / build (pull_request) Successful in 4m48s
All checks were successful
Build / build (pull_request) Successful in 4m48s
This commit is contained in:
parent
d794bd94ce
commit
801b425ab8
@ -646,7 +646,7 @@ function fetchItemList() {
|
|||||||
if ("badReason" in item) {
|
if ("badReason" in item) {
|
||||||
if (item.badReason == "starter") {
|
if (item.badReason == "starter") {
|
||||||
item.name = loc("code_starter").split("|MOD|").join(item.name);
|
item.name = loc("code_starter").split("|MOD|").join(item.name);
|
||||||
} else {
|
} else if (item.badReason != "notraw") {
|
||||||
item.name += " " + loc("code_badItem");
|
item.name += " " + loc("code_badItem");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1454,7 +1454,11 @@ function updateInventory() {
|
|||||||
{
|
{
|
||||||
const td = document.createElement("td");
|
const td = document.createElement("td");
|
||||||
td.textContent = itemMap[item.ItemType]?.name ?? item.ItemType;
|
td.textContent = itemMap[item.ItemType]?.name ?? item.ItemType;
|
||||||
td.innerHTML += " <span title='" + loc("code_rank") + "'>★ " + rank + "/" + maxRank + "</span>";
|
if (itemMap[item.ItemType]?.badReason == "notraw") {
|
||||||
|
// Assuming this is a riven with a pending challenge, so rank would be N/A, but otherwise it's fine.
|
||||||
|
} else {
|
||||||
|
td.innerHTML += " <span title='" + loc("code_rank") + "'>★ " + rank + "/" + maxRank + "</span>";
|
||||||
|
}
|
||||||
tr.appendChild(td);
|
tr.appendChild(td);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user