Add "buiding" icon in part list if no stock and none on order

This commit is contained in:
Oliver Walters 2020-03-26 17:57:49 +11:00
parent 713d7960a8
commit c0650ba7f4

View File

@ -196,6 +196,9 @@ function loadPartTable(table, url, options={}) {
} else if (row.on_order) {
value = "<span class='label label-primary'>On Order : " + row.on_order + "</span>";
link = "orders";
} else if (row.building) {
value = "<span class='label label-info'>Building : " + row.building + "</span>";
link = "builds";
} else {
value ="<span class='label label-warning'>No Stock</span>";
}