diff --git a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table/bulk_actions.tsx b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table/bulk_actions.tsx index 5752822402ea2..60cd2418c8bf8 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table/bulk_actions.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table/bulk_actions.tsx @@ -6,13 +6,7 @@ */ import React from 'react'; -import { - EuiButton, - EuiButtonEmpty, - EuiFlexGroup, - EuiFlexItem, - EuiLoadingSpinner, -} from '@elastic/eui'; +import { EuiButton, EuiButtonEmpty, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import * as i18n from './translations'; export interface BulkActionsProps { @@ -39,52 +33,52 @@ export const BulkActions: React.FC = React.memo( reprocessFailedRules, }) => { const disableInstallTranslatedRulesButton = isTableLoading || !numberOfTranslatedRules; - const showInstallSelectedRulesButton = isTableLoading || numberOfSelectedRules > 0; - const showRetryFailedRulesButton = isTableLoading || numberOfFailedRules > 0; + const showInstallSelectedRulesButton = numberOfSelectedRules > 0; + const showRetryFailedRulesButton = numberOfFailedRules > 0; return ( - {showInstallSelectedRulesButton ? ( + {showInstallSelectedRulesButton && ( installSelectedRule?.()} disabled={isTableLoading} + isLoading={isTableLoading} data-test-subj="installSelectedRulesButton" aria-label={i18n.INSTALL_SELECTED_ARIA_LABEL} > {i18n.INSTALL_SELECTED_RULES(numberOfSelectedRules)} - {isTableLoading && } - ) : null} - {showRetryFailedRulesButton ? ( + )} + {showRetryFailedRulesButton && ( reprocessFailedRules?.()} disabled={isTableLoading} + isLoading={isTableLoading} + data-test-subj="reprocessFailedRulesButton" aria-label={i18n.REPROCESS_FAILED_ARIA_LABEL} > {i18n.REPROCESS_FAILED_RULES(numberOfFailedRules)} - {isTableLoading && } - ) : null} + )} installTranslatedRule?.()} disabled={disableInstallTranslatedRulesButton} + isLoading={isTableLoading} + data-test-subj="installTranslatedRulesButton" aria-label={i18n.INSTALL_TRANSLATED_ARIA_LABEL} > {numberOfTranslatedRules > 0 ? i18n.INSTALL_TRANSLATED_RULES(numberOfTranslatedRules) : i18n.INSTALL_TRANSLATED_RULES_EMPTY_STATE} - {isTableLoading && }