Skip to content

Commit 26f77a8

Browse files
authored
fix(TabletsTable): action icons coincide in tablet's page and in table (#1549)
1 parent 4eb5c04 commit 26f77a8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ interface ButtonWithConfirmDialogProps<T, K> {
1515
retryButtonText?: string;
1616
buttonDisabled?: ButtonProps['disabled'];
1717
buttonView?: ButtonProps['view'];
18+
buttonTitle?: ButtonProps['title'];
1819
buttonClassName?: ButtonProps['className'];
1920
withPopover?: boolean;
2021
popoverContent?: PopoverProps['content'];
@@ -31,6 +32,7 @@ export function ButtonWithConfirmDialog<T, K>({
3132
retryButtonText,
3233
buttonDisabled = false,
3334
buttonView = 'action',
35+
buttonTitle,
3436
buttonClassName,
3537
withPopover = false,
3638
popoverContent,
@@ -69,6 +71,7 @@ export function ButtonWithConfirmDialog<T, K>({
6971
disabled={buttonDisabled}
7072
loading={!buttonDisabled && buttonLoading}
7173
className={buttonClassName}
74+
title={buttonTitle}
7275
>
7376
{children}
7477
</Button>

src/containers/Tablets/TabletsTable.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {ArrowsRotateRight} from '@gravity-ui/icons';
1+
import {ArrowRotateLeft} from '@gravity-ui/icons';
22
import type {Column as DataTableColumn} from '@gravity-ui/react-data-table';
33
import {Icon, Text} from '@gravity-ui/uikit';
44

@@ -128,6 +128,7 @@ function TabletActions(tablet: TTabletStateInfo) {
128128
return (
129129
<ButtonWithConfirmDialog
130130
buttonView="outlined"
131+
buttonTitle={i18n('dialog.kill-header')}
131132
dialogHeader={i18n('dialog.kill-header')}
132133
dialogText={i18n('dialog.kill-text')}
133134
onConfirmAction={() => {
@@ -138,7 +139,7 @@ function TabletActions(tablet: TTabletStateInfo) {
138139
popoverContent={i18n('controls.kill-not-allowed')}
139140
popoverDisabled={isUserAllowedToMakeChanges}
140141
>
141-
<Icon data={ArrowsRotateRight} />
142+
<Icon data={ArrowRotateLeft} />
142143
</ButtonWithConfirmDialog>
143144
);
144145
}

0 commit comments

Comments
 (0)