ods-component-lib 1.17.110 → 1.17.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1427,13 +1427,13 @@ function grid(props, dataGridRef) {
|
|
|
1427
1427
|
}, props.edit.allowUpdating && React__default.createElement(dataGrid.Button, {
|
|
1428
1428
|
hint: props.HintEdit,
|
|
1429
1429
|
visible: true,
|
|
1430
|
-
disabled:
|
|
1430
|
+
disabled: props.actionPermission == undefined ? false : !props.actionPermission,
|
|
1431
1431
|
icon: "edit",
|
|
1432
1432
|
onClick: props.editButtonClick
|
|
1433
1433
|
}), props.edit.allowDeleting && React__default.createElement(dataGrid.Button, {
|
|
1434
1434
|
hint: props.HintDelete,
|
|
1435
1435
|
visible: true,
|
|
1436
|
-
disabled:
|
|
1436
|
+
disabled: props.actionPermission == undefined ? false : !props.actionPermission,
|
|
1437
1437
|
icon: "trash",
|
|
1438
1438
|
onClick: props.deleteButtonClick
|
|
1439
1439
|
}));
|
|
@@ -1445,8 +1445,10 @@ function grid(props, dataGridRef) {
|
|
|
1445
1445
|
width: 110,
|
|
1446
1446
|
showInColumnChooser: false
|
|
1447
1447
|
}, React__default.createElement(React__default.Fragment, null, props.edit.allowUpdating && React__default.createElement(dataGrid.Button, {
|
|
1448
|
+
disabled: props.actionPermission == undefined ? false : !props.actionPermission,
|
|
1448
1449
|
name: "edit"
|
|
1449
1450
|
}), props.edit.allowDeleting && React__default.createElement(dataGrid.Button, {
|
|
1451
|
+
disabled: props.actionPermission == undefined ? false : !props.actionPermission,
|
|
1450
1452
|
name: "delete"
|
|
1451
1453
|
})));
|
|
1452
1454
|
}
|
|
@@ -1465,7 +1467,7 @@ function grid(props, dataGridRef) {
|
|
|
1465
1467
|
location: "before"
|
|
1466
1468
|
}, React__default.createElement(OdsButton, {
|
|
1467
1469
|
type: "primary",
|
|
1468
|
-
disabled:
|
|
1470
|
+
disabled: props.actionPermission == undefined ? false : !props.actionPermission,
|
|
1469
1471
|
onClick: props.onAddButton,
|
|
1470
1472
|
style: {
|
|
1471
1473
|
marginBottom: "10px"
|