improve appearance of kuva lich weapons in webui
This commit is contained in:
		
							parent
							
								
									8e7d4382f2
								
							
						
					
					
						commit
						ae12d1e037
					
				@ -215,7 +215,12 @@ 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;
 | 
				
			||||||
                        if (item.ItemName) {
 | 
					                        if (item.ItemName) {
 | 
				
			||||||
                            td.textContent = item.ItemName + " (" + td.textContent + ")";
 | 
					                            const pipeIndex = item.ItemName.indexOf("|");
 | 
				
			||||||
 | 
					                            if (pipeIndex != -1) {
 | 
				
			||||||
 | 
					                                td.textContent = item.ItemName.substr(1 + pipeIndex) + " " + td.textContent;
 | 
				
			||||||
 | 
					                            } else {
 | 
				
			||||||
 | 
					                                td.textContent = item.ItemName + " (" + td.textContent + ")";
 | 
				
			||||||
 | 
					                            }
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                        if (item.ModularParts && item.ModularParts.length) {
 | 
					                        if (item.ModularParts && item.ModularParts.length) {
 | 
				
			||||||
                            td.textContent += " [";
 | 
					                            td.textContent += " [";
 | 
				
			||||||
@ -1092,7 +1097,7 @@ function doImport() {
 | 
				
			|||||||
            data: JSON.stringify({
 | 
					            data: JSON.stringify({
 | 
				
			||||||
                inventory: JSON.parse($("#import-inventory").val())
 | 
					                inventory: JSON.parse($("#import-inventory").val())
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
        }).then(function() {
 | 
					        }).then(function () {
 | 
				
			||||||
            updateInventory();
 | 
					            updateInventory();
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user