Hide checkboxes when BOM is not being edited

This commit is contained in:
Oliver Walters 2019-05-25 00:36:02 +10:00
parent 86695cf2bb
commit 686a61fba9

View File

@ -32,13 +32,16 @@ function loadBomTable(table, options) {
title: 'ID', title: 'ID',
visible: false, visible: false,
}, },
{ ];
if (options.editable) {
cols.push({
checkbox: true, checkbox: true,
title: 'Select', title: 'Select',
searchable: false, searchable: false,
sortable: false, sortable: false,
}, });
]; }
// Part column // Part column
cols.push( cols.push(