diff --git a/opencti-platform/opencti-front/src/private/components/data/DataTableToolBar.jsx b/opencti-platform/opencti-front/src/private/components/data/DataTableToolBar.jsx index 903105d74851..7ce350744d42 100644 --- a/opencti-platform/opencti-front/src/private/components/data/DataTableToolBar.jsx +++ b/opencti-platform/opencti-front/src/private/components/data/DataTableToolBar.jsx @@ -1392,23 +1392,25 @@ class DataTableToolBar extends Component { // endregion return ( <> - - - +
+ - {numberOfSelectedElements} - {' '} - {t('selected')}{' '} + + {numberOfSelectedElements} + {' '} + {t('selected')}{' '} + - - - {!typesAreNotUpdatable && ( - - - - - - - - )} - - {({ platformModuleHelpers }) => { - const label = platformModuleHelpers.isRuleEngineEnable() - ? 'Rule rescan' - : 'Rule rescan (engine is disabled)'; - const buttonDisable = typesAreNotScannable +
+
+ + {!typesAreNotUpdatable && ( + + + + + + + + )} + + {({ platformModuleHelpers }) => { + const label = platformModuleHelpers.isRuleEngineEnable() + ? 'Rule rescan' + : 'Rule rescan (engine is disabled)'; + const buttonDisable = typesAreNotScannable || !platformModuleHelpers.isRuleEngineEnable() || numberOfSelectedElements === 0 || this.state.processing; - return typesAreNotScannable ? undefined : ( - - - - - - - - ); - }} - - {this.props.handleCopy && ( - - - maxNumberOfObservablesToCopy - } - onClick={this.props.handleCopy} - color="primary" - size="small" - > - - - - - )} - {!enrichDisable && ( - - - - - - - + return typesAreNotScannable ? undefined : ( + + + + + + + + ); + }} + + {this.props.handleCopy && ( + + + maxNumberOfObservablesToCopy + } + onClick={this.props.handleCopy} + color="primary" + size="small" + > + + + + + )} + {!enrichDisable && ( + + + + + + + + )} + {promoteEnabled && ( + + + + + + + + )} + {enableMerge && ( + + + 4 + || preventMerge + || selectAll + || this.state.processing + } + onClick={this.handleOpenMerge.bind(this)} + color="primary" + size="small" + > + + + + + )} + + {!typesAreNotAddableInContainer && ( + + + + + + + + + )} - {promoteEnabled && ( - - - - - - - + {container && ( + + + + + + + + + )} - {enableMerge && ( - - - 4 - || preventMerge - || selectAll - || this.state.processing - } - onClick={this.handleOpenMerge.bind(this)} - color="primary" - size="small" - > - - - - + {isShareableType && ( + <> + + + + + + + + + + + + + + + )} - - {!typesAreNotAddableInContainer && ( - - - - - - - - - - )} - {container && ( - - - - - - - - - - )} - {isShareableType && ( - <> - - - - - - + {deleteDisable !== true && ( + + + + + + + + - - - - - - + )} + {deleteOperationEnabled && ( + + + + + + + + + + + + + + + - - )} - {deleteDisable !== true && ( - - - - - - - - - - )} - {deleteOperationEnabled && ( - - - - - - - - - - - - - - - - - )} + )} +
(option.label ? option.label : '') - } + getOptionLabel={(option) => (option.label ? option.label : '')} value={actionsInputs[0]?.values || []} multiple={true} renderInput={(params) => (