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:
@ -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" %}',
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user