Revert display of "INACTIVE" parts

This commit is contained in:
Oliver Walters 2020-04-11 23:09:21 +10:00
parent de6f2d37e5
commit 59778130cd

View File

@ -140,11 +140,11 @@ function loadPartTable(table, url, options={}) {
var display = imageHoverIcon(row.thumbnail) + renderLink(name, '/part/' + row.pk + '/'); var display = imageHoverIcon(row.thumbnail) + renderLink(name, '/part/' + row.pk + '/');
if (row.is_template) { if (row.is_template) {
display = display + `<span class='fas fa-clone label-right' title='Template part'></span>`; display += `<span class='fas fa-clone label-right' title='Template part'></span>`;
} }
if (row.assembly) { if (row.assembly) {
display = display + `<span class='fas fa-tools label-right' title='Assembled part'></span>`; display += `<span class='fas fa-tools label-right' title='Assembled part'></span>`;
} }
/* /*
@ -154,7 +154,7 @@ function loadPartTable(table, url, options={}) {
*/ */
if (!row.active) { if (!row.active) {
display = display + `<span class='fas fa-times label-right' title='Inactive part'></span>`; display += `<span class='label label-warning label-right'>INACTIVE</span>`;
} }
return display; return display;
} }