Click button to validate BOM item

This commit is contained in:
Oliver Walters 2019-09-05 19:34:58 +10:00
parent 37d9c59a0e
commit 7659f2de7b

View File

@ -317,5 +317,22 @@ function loadBomTable(table, options) {
}
});
});
table.on('click', '.bom-validate-button', function() {
var button = $(this);
var url = '/api/bom/' + button.attr('pk') + '/validate/';
inventreePut(
url,
{
valid: true
},
{
method: 'PATCH',
reloadOnSuccess: true
}
);
});
}
}