Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ interface ButtonWithConfirmDialogProps<T, K> {
retryButtonText?: string;
buttonDisabled?: ButtonProps['disabled'];
buttonView?: ButtonProps['view'];
buttonTitle?: ButtonProps['title'];
buttonClassName?: ButtonProps['className'];
withPopover?: boolean;
popoverContent?: PopoverProps['content'];
Expand All @@ -31,6 +32,7 @@ export function ButtonWithConfirmDialog<T, K>({
retryButtonText,
buttonDisabled = false,
buttonView = 'action',
buttonTitle,
buttonClassName,
withPopover = false,
popoverContent,
Expand Down Expand Up @@ -69,6 +71,7 @@ export function ButtonWithConfirmDialog<T, K>({
disabled={buttonDisabled}
loading={!buttonDisabled && buttonLoading}
className={buttonClassName}
title={buttonTitle}
>
{children}
</Button>
Expand Down
5 changes: 3 additions & 2 deletions src/containers/Tablets/TabletsTable.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ArrowsRotateRight} from '@gravity-ui/icons';
import {ArrowRotateLeft} from '@gravity-ui/icons';
import type {Column as DataTableColumn} from '@gravity-ui/react-data-table';
import {Icon, Text} from '@gravity-ui/uikit';

Expand Down Expand Up @@ -128,6 +128,7 @@ function TabletActions(tablet: TTabletStateInfo) {
return (
<ButtonWithConfirmDialog
buttonView="outlined"
buttonTitle={i18n('dialog.kill-header')}
dialogHeader={i18n('dialog.kill-header')}
dialogText={i18n('dialog.kill-text')}
onConfirmAction={() => {
Expand All @@ -138,7 +139,7 @@ function TabletActions(tablet: TTabletStateInfo) {
popoverContent={i18n('controls.kill-not-allowed')}
popoverDisabled={isUserAllowedToMakeChanges}
>
<Icon data={ArrowsRotateRight} />
<Icon data={ArrowRotateLeft} />
</ButtonWithConfirmDialog>
);
}
Expand Down
Loading