XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFESpaceNinjaServer

fix(webui): display correct name for kuva weapons in detailedView (#2952)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2952 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>

678ad0c4
AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
提交于

代码差异

1 个文件 +9 -6
Modified static/webui/script.js +9 -6
@@ -1542,14 +1542,17 @@ function updateInventory() {
1542 1542
1543 1543 if (item) {
1544 1544 document.getElementById("detailedView-loading").classList.add("d-none");
1545
1545 const itemName = itemMap[item.ItemType]?.name ?? item.ItemType;
1546 1546 if (item.ItemName) {
1547 $("#detailedView-title").text(item.ItemName);
1548 $("#detailedView-route .text-body-secondary").text(
1549 itemMap[item.ItemType]?.name ?? item.ItemType
1550 );
1547 const pipeIndex = item.ItemName.indexOf("|");
1548 if (pipeIndex != -1) {
1549 $("#detailedView-title").text(item.ItemName.substr(1 + pipeIndex) + " " + itemName);
1550 } else {
1551 $("#detailedView-title").text(item.ItemName);
1552 $("#detailedView-route .text-body-secondary").text(itemName);
1553 }
1551 1554 } else {
1552 $("#detailedView-title").text(itemMap[item.ItemType]?.name ?? item.ItemType);
1555 $("#detailedView-title").text(itemName);
1553 1556 }
1554 1557
1555 1558 if (category == "Suits") {