feat(webui): disambiguate gear and resource with the same name for add items #2127

Merged
Sainan merged 3 commits from webui-disambiguate into main 2025-06-07 02:17:27 -07:00
Showing only changes of commit bfe4348da9 - Show all commits

View File

@ -365,7 +365,7 @@ function fetchItemList() {
.appendChild(option); .appendChild(option);
} }
} else if (item.badReason != "notraw") { } else if (item.badReason != "notraw") {
const ambiguous = (nameToItems[item.name].length > 1); const ambiguous = nameToItems[item.name].length > 1;
let canDisambiguate = true; let canDisambiguate = true;
if (ambiguous) { if (ambiguous) {
for (const i2 of nameToItems[item.name]) { for (const i2 of nameToItems[item.name]) {