mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Don't add "remove row" button if there is only one row
This commit is contained in:
parent
27b55eb8f8
commit
b4f8136142
@ -655,12 +655,14 @@ function receivePurchaseOrderItems(order_id, line_items, options={}) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
buttons += makeIconButton(
|
if (line_items.length > 1) {
|
||||||
'fa-times icon-red',
|
buttons += makeIconButton(
|
||||||
'button-row-remove',
|
'fa-times icon-red',
|
||||||
pk,
|
'button-row-remove',
|
||||||
'{% trans "Remove row" %}',
|
pk,
|
||||||
);
|
'{% trans "Remove row" %}',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
buttons += '</div>';
|
buttons += '</div>';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user