2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 13:35:40 +00:00

Add option to select multiple build outputs

- Can "complete" these outputs
This commit is contained in:
Oliver
2021-10-16 14:27:02 +11:00
parent d47b32e4aa
commit 14ef56785e
4 changed files with 65 additions and 18 deletions

View File

@ -423,8 +423,6 @@ function completeBuildOutputs(build_id, outputs, options={}) {
output: pk,
});
output_pk_values.push(pk);
} else {
console.log(`Could not find row for ${pk}`);
}
});
@ -753,6 +751,12 @@ function loadBuildOutputTable(build_info, options={}) {
setupBuildOutputButtonCallbacks();
},
columns: [
{
title: '',
visible: true,
checkbox: true,
switchable: false,
},
{
field: 'part',
title: '{% trans "Part" %}',

View File

@ -56,10 +56,10 @@ function enableButtons(elements, enabled) {
}
/* Link a bootstrap-table object to one or more buttons.
* The buttons will only be enabled if there is at least one row selected
*/
function linkButtonsToSelection(table, buttons) {
/* Link a bootstrap-table object to one or more buttons.
* The buttons will only be enabled if there is at least one row selected
*/
if (typeof table === 'string') {
table = $(table);