File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
pages/rdi/statistics/target-connections Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { EuiBasicTableColumn , EuiIcon , EuiToolTip } from '@elastic/eui'
2
2
import React from 'react'
3
3
4
- import { IConnections } from 'uiSrc/slices/interfaces'
4
+ import { IConnections , StatisticsConnectionStatus } from 'uiSrc/slices/interfaces'
5
5
import { formatLongName } from 'uiSrc/utils'
6
6
import Accordion from '../components/accordion'
7
7
import Panel from '../components/panel'
@@ -22,7 +22,7 @@ const columns: EuiBasicTableColumn<ConnectionData>[] = [
22
22
field : 'status' ,
23
23
width : '80px' ,
24
24
render : ( status : string ) =>
25
- ( status === 'good' ? (
25
+ ( status === StatisticsConnectionStatus . connected ? (
26
26
< EuiIcon type = "dot" color = "var(--buttonSuccessColor)" />
27
27
) : (
28
28
< EuiIcon type = "alert" color = "danger" />
Original file line number Diff line number Diff line change @@ -51,11 +51,16 @@ export interface IRdiPipelineStrategies {
51
51
data : IRdiPipelineStrategy [ ]
52
52
}
53
53
54
+ export enum StatisticsConnectionStatus {
55
+ notYetUsed = 'not yet used' ,
56
+ connected = 'connected'
57
+ }
58
+
54
59
export interface IConnections {
55
60
[ key : string ] : {
56
61
host : string
57
62
port : number
58
- status : string
63
+ status : StatisticsConnectionStatus
59
64
type : string
60
65
database : string
61
66
user : string
You can’t perform that action at this time.
0 commit comments