Allow BOM file to be "re-uploaded"

This commit is contained in:
Oliver 2022-02-13 20:49:42 +11:00
parent 0aeaf61254
commit e3fc1ab138

View File

@ -89,8 +89,11 @@ $('#bom-upload').click(function() {
},
title: '{% trans "Upload BOM File" %}',
onSuccess: function(response) {
$('#bom-upload').hide();
// Clear existing entries from the table
$('.bom-import-row').remove();
// Disable the "submit" button
$('#bom-submit').show();
constructBomUploadTable(response);