chore(webui): clean up listing for rivens with pending challenges (#2969)
Closes #2966 Reviewed-on: #2969 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
parent
00acaed62a
commit
cc5682760d
@ -646,7 +646,7 @@ function fetchItemList() {
|
||||
if ("badReason" in item) {
|
||||
if (item.badReason == "starter") {
|
||||
item.name = loc("code_starter").split("|MOD|").join(item.name);
|
||||
} else {
|
||||
} else if (item.badReason != "notraw") {
|
||||
item.name += " " + loc("code_badItem");
|
||||
}
|
||||
}
|
||||
@ -1454,7 +1454,11 @@ function updateInventory() {
|
||||
{
|
||||
const td = document.createElement("td");
|
||||
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);
|
||||
}
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user