mirror of
https://github.com/badlogic/heissepreise.git
synced 2024-06-23 17:05:53 +02:00
show unit and quantity when available
This commit is contained in:
parent
57a203c573
commit
2c19a6ccf3
|
@ -109,7 +109,7 @@ function itemToDOM(item) {
|
|||
storeDom.setAttribute("data-label", "Kette");
|
||||
let nameDom = dom("td", `<div class="itemname">${itemToStoreLink(item)}</div>`);
|
||||
nameDom.setAttribute("data-label", "Name");
|
||||
let unitDom = dom("td", item.unit ? item.unit : "");
|
||||
let unitDom = dom("td", (item.quantity ? item.quantity + " ": "") + (item.unit ? item.unit : ""));
|
||||
unitDom.setAttribute("data-label", "Menge");
|
||||
let increase = "";
|
||||
if (item.priceHistory.length > 1) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user