@irontec/ivoz-ui 1.7.11 → 1.7.12
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.
|
@@ -16,7 +16,8 @@ const ContentCardBody = (props) => {
|
|
|
16
16
|
const multiselectActions = Object.values(entity.customActions)
|
|
17
17
|
.filter((action) => action.multiselect || action.global)
|
|
18
18
|
.map((item) => item.action);
|
|
19
|
-
const multiselect = acl.delete === true ||
|
|
19
|
+
const multiselect = (entity.deleteDoubleCheck !== true && acl.delete === true) ||
|
|
20
|
+
multiselectActions.length > 0;
|
|
20
21
|
const updateRouteMapItem = {
|
|
21
22
|
entity,
|
|
22
23
|
route: `${entity.path}/:id/update`,
|
|
@@ -14,7 +14,7 @@ import { StyledFastSearchField } from './FastSearchField.styles';
|
|
|
14
14
|
const ListContentHeader = (props, ref) => {
|
|
15
15
|
const { path, entityService, ignoreColumn, preloadData, cancelToken, match, location, selectedValues, parentRow, mobile, } = props;
|
|
16
16
|
const entity = entityService.getEntity();
|
|
17
|
-
const disableMultiDelete = entity.
|
|
17
|
+
const disableMultiDelete = entity.deleteDoubleCheck === true || entity.disableMultiDelete === true;
|
|
18
18
|
const acl = entityService.getAcls(parentRow);
|
|
19
19
|
const [anchorEl, setAnchorEl] = useState(null);
|
|
20
20
|
const rows = useStoreState((state) => state.list.rows);
|
|
@@ -37,7 +37,8 @@ const ContentTable = (props) => {
|
|
|
37
37
|
const columns = entityService.getCollectionColumns(storeState);
|
|
38
38
|
const parentRow = useStoreState((state) => state.list.parentRow);
|
|
39
39
|
const acl = entityService.getAcls(parentRow);
|
|
40
|
-
const multiselect = acl.delete === true ||
|
|
40
|
+
const multiselect = (entity.deleteDoubleCheck !== true && acl.delete === true) ||
|
|
41
|
+
multiselectActions.length > 0;
|
|
41
42
|
const deleteMapItem = {
|
|
42
43
|
entity,
|
|
43
44
|
route: `${entity.path}/:id`,
|