11import type { AlertProps } from '@gravity-ui/uikit' ;
2- import { Alert , Button , Flex , Icon , Popover , Skeleton } from '@gravity-ui/uikit' ;
2+ import { Alert , Button , Flex , Icon , Skeleton } from '@gravity-ui/uikit' ;
33
44import { ResponseError } from '../../../../../components/Errors/ResponseError' ;
5- import { useClusterBaseInfo } from '../../../../../store/reducers/cluster/cluster' ;
65import { healthcheckApi } from '../../../../../store/reducers/healthcheckInfo/healthcheckInfo' ;
76import { SelfCheckResult } from '../../../../../types/api/healthcheck' ;
87import { cn } from '../../../../../utils/cn' ;
@@ -12,8 +11,6 @@ import {useTenantQueryParams} from '../../../useTenantQueryParams';
1211
1312import i18n from './i18n' ;
1413
15- import CircleExclamationIcon from '@gravity-ui/icons/svgs/circle-exclamation.svg' ;
16-
1714import './HealthcheckPreview.scss' ;
1815
1916const b = cn ( 'ydb-healthcheck-preview' ) ;
@@ -35,21 +32,16 @@ export function HealthcheckPreview(props: HealthcheckPreviewProps) {
3532 const { tenantName} = props ;
3633 const [ autoRefreshInterval ] = useAutoRefreshInterval ( ) ;
3734
38- const { name} = useClusterBaseInfo ( ) ;
39-
4035 const { handleShowHealthcheckChange} = useTenantQueryParams ( ) ;
4136
42- const healthcheckPreviewDisabled = name === 'ydb_ru' ;
43-
4437 const {
4538 currentData : data ,
4639 isFetching,
4740 error,
4841 } = healthcheckApi . useGetHealthcheckInfoQuery (
4942 { database : tenantName } ,
5043 {
51- //FIXME https://github.com/ydb-platform/ydb-embedded-ui/issues/1889
52- pollingInterval : healthcheckPreviewDisabled ? undefined : autoRefreshInterval ,
44+ pollingInterval : autoRefreshInterval ,
5345 } ,
5446 ) ;
5547
@@ -81,15 +73,6 @@ export function HealthcheckPreview(props: HealthcheckPreviewProps) {
8173 < Flex gap = { 1 } alignItems = "center" >
8274 { HEALTHCHECK_RESULT_TO_TEXT [ selfCheckResult ] }
8375 { issuesText ? ` ${ issuesText } ` : '' }
84- { healthcheckPreviewDisabled ? (
85- < Popover
86- content = { 'Healthcheck is disabled. Please update healthcheck manually.' }
87- placement = { [ 'top' ] }
88- className = { b ( 'icon-wrapper' ) }
89- >
90- { ( ) => < Icon size = { 16 } data = { CircleExclamationIcon } /> }
91- </ Popover >
92- ) : null }
9376 </ Flex >
9477 { issuesCount && (
9578 < Button
0 commit comments