|
1 | 1 | import {duration} from '@gravity-ui/date-utils'; |
2 | 2 | import {Ban, CircleStop} from '@gravity-ui/icons'; |
3 | 3 | import type {Column as DataTableColumn} from '@gravity-ui/react-data-table'; |
4 | | -import {Icon, Text, Tooltip} from '@gravity-ui/uikit'; |
| 4 | +import {Icon, Text} from '@gravity-ui/uikit'; |
5 | 5 |
|
6 | 6 | import {ButtonWithConfirmDialog} from '../../components/ButtonWithConfirmDialog/ButtonWithConfirmDialog'; |
7 | 7 | import {CellWithPopover} from '../../components/CellWithPopover/CellWithPopover'; |
@@ -163,40 +163,40 @@ function OperationsActions({operation, database, refreshTable}: OperationsAction |
163 | 163 |
|
164 | 164 | return ( |
165 | 165 | <div className={b('buttons-container')}> |
166 | | - <Tooltip openDelay={0} content={i18n('header_forget')} placement={['left', 'auto']}> |
167 | | - <div> |
168 | | - <ButtonWithConfirmDialog |
169 | | - buttonView="outlined" |
170 | | - dialogHeader={i18n('header_forget')} |
171 | | - dialogText={i18n('text_forget')} |
172 | | - onConfirmAction={() => |
173 | | - forgetOperation({id, database}) |
174 | | - .unwrap() |
175 | | - .then(() => refreshTable()) |
176 | | - } |
177 | | - buttonDisabled={isLoadingCancel} |
178 | | - > |
179 | | - <Icon data={Ban} /> |
180 | | - </ButtonWithConfirmDialog> |
181 | | - </div> |
182 | | - </Tooltip> |
183 | | - <Tooltip openDelay={0} content={i18n('header_cancel')} placement={['right', 'auto']}> |
184 | | - <div> |
185 | | - <ButtonWithConfirmDialog |
186 | | - buttonView="outlined" |
187 | | - dialogHeader={i18n('header_cancel')} |
188 | | - dialogText={i18n('text_cancel')} |
189 | | - onConfirmAction={() => |
190 | | - cancelOperation({id, database}) |
191 | | - .unwrap() |
192 | | - .then(() => refreshTable()) |
193 | | - } |
194 | | - buttonDisabled={isForgetLoading} |
195 | | - > |
196 | | - <Icon data={CircleStop} /> |
197 | | - </ButtonWithConfirmDialog> |
198 | | - </div> |
199 | | - </Tooltip> |
| 166 | + <ButtonWithConfirmDialog |
| 167 | + buttonView="outlined" |
| 168 | + dialogHeader={i18n('header_forget')} |
| 169 | + dialogText={i18n('text_forget')} |
| 170 | + onConfirmAction={() => |
| 171 | + forgetOperation({id, database}) |
| 172 | + .unwrap() |
| 173 | + .then(() => refreshTable()) |
| 174 | + } |
| 175 | + buttonDisabled={isLoadingCancel} |
| 176 | + withPopover |
| 177 | + popoverContent={i18n('header_forget')} |
| 178 | + popoverPlacement={['left', 'auto']} |
| 179 | + popoverDisabled={false} |
| 180 | + > |
| 181 | + <Icon data={Ban} /> |
| 182 | + </ButtonWithConfirmDialog> |
| 183 | + <ButtonWithConfirmDialog |
| 184 | + buttonView="outlined" |
| 185 | + dialogHeader={i18n('header_cancel')} |
| 186 | + dialogText={i18n('text_cancel')} |
| 187 | + onConfirmAction={() => |
| 188 | + cancelOperation({id, database}) |
| 189 | + .unwrap() |
| 190 | + .then(() => refreshTable()) |
| 191 | + } |
| 192 | + buttonDisabled={isForgetLoading} |
| 193 | + withPopover |
| 194 | + popoverContent={i18n('header_cancel')} |
| 195 | + popoverPlacement={['right', 'auto']} |
| 196 | + popoverDisabled={false} |
| 197 | + > |
| 198 | + <Icon data={CircleStop} /> |
| 199 | + </ButtonWithConfirmDialog> |
200 | 200 | </div> |
201 | 201 | ); |
202 | 202 | } |
0 commit comments