fix(webui): display correct name for kuva weapons in detailedView
All checks were successful
Build / build (pull_request) Successful in 1m51s
All checks were successful
Build / build (pull_request) Successful in 1m51s
This commit is contained in:
parent
654652b889
commit
822964a126
@ -1542,14 +1542,17 @@ function updateInventory() {
|
|||||||
|
|
||||||
if (item) {
|
if (item) {
|
||||||
document.getElementById("detailedView-loading").classList.add("d-none");
|
document.getElementById("detailedView-loading").classList.add("d-none");
|
||||||
|
const itemName = itemMap[item.ItemType]?.name ?? item.ItemType;
|
||||||
if (item.ItemName) {
|
if (item.ItemName) {
|
||||||
$("#detailedView-title").text(item.ItemName);
|
const pipeIndex = item.ItemName.indexOf("|");
|
||||||
$("#detailedView-route .text-body-secondary").text(
|
if (pipeIndex != -1) {
|
||||||
itemMap[item.ItemType]?.name ?? item.ItemType
|
$("#detailedView-title").text(item.ItemName.substr(1 + pipeIndex) + " " + itemName);
|
||||||
);
|
} else {
|
||||||
|
$("#detailedView-title").text(item.ItemName);
|
||||||
|
$("#detailedView-route .text-body-secondary").text(itemName);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$("#detailedView-title").text(itemMap[item.ItemType]?.name ?? item.ItemType);
|
$("#detailedView-title").text(itemName);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (category == "Suits") {
|
if (category == "Suits") {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user