mirror of
https://github.com/badlogic/heissepreise.git
synced 2024-06-28 03:16:12 +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");
|
storeDom.setAttribute("data-label", "Kette");
|
||||||
let nameDom = dom("td", `<div class="itemname">${itemToStoreLink(item)}</div>`);
|
let nameDom = dom("td", `<div class="itemname">${itemToStoreLink(item)}</div>`);
|
||||||
nameDom.setAttribute("data-label", "Name");
|
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");
|
unitDom.setAttribute("data-label", "Menge");
|
||||||
let increase = "";
|
let increase = "";
|
||||||
if (item.priceHistory.length > 1) {
|
if (item.priceHistory.length > 1) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user