File tree Expand file tree Collapse file tree 4 files changed +28
-26
lines changed
pages/home/components/AddInstanceForm/InstanceForm Expand file tree Collapse file tree 4 files changed +28
-26
lines changed Original file line number Diff line number Diff line change @@ -83,9 +83,9 @@ const Monitor = (props: Props) => {
83
83
</ div >
84
84
< div className = { styles . saveLogContainer } >
85
85
< EuiToolTip
86
- title = "Allows you to download the generated log file after pausing the Profiler. "
86
+ title = "Allows you to download the generated log file after pausing the Profiler"
87
87
content = "Profiler log is saved to a file on your local machine with no size limitation.
88
- The temporary log file will be automatically rewritten when the Profiler is reset"
88
+ The temporary log file will be automatically rewritten when the Profiler is reset. "
89
89
>
90
90
< EuiSwitch
91
91
compressed
@@ -122,7 +122,7 @@ const Monitor = (props: Props) => {
122
122
123
123
return (
124
124
< >
125
- < div className = { styles . container } data-testid = "monitor" >
125
+ < div className = { cx ( styles . container , { [ styles . isRunning ] : isRunning && ! isPaused } ) } data-testid = "monitor" >
126
126
{ ( error && ! isRunning )
127
127
? ( < MonitorError /> )
128
128
: (
@@ -151,12 +151,7 @@ const Monitor = (props: Props) => {
151
151
) }
152
152
</ div >
153
153
) }
154
- { isRunning && isPaused && ! isSaveToFile && (
155
- < div data-testid = "monitor-stopped" className = { styles . monitorStoppedText } >
156
- Profiler is paused.
157
- </ div >
158
- ) }
159
- { ( isStarted && isPaused && isSaveToFile ) && (
154
+ { ( isStarted && isPaused ) && (
160
155
< MonitorLog />
161
156
) }
162
157
</ div >
Original file line number Diff line number Diff line change 22
22
23
23
z-index : 10 ;
24
24
overflow : auto ;
25
+
26
+ & .isRunning {
27
+ outline : 1px solid var (--euiColorPrimary );
28
+ border-top-color : transparent ;
29
+ }
25
30
}
26
31
27
32
.listWrapper {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const MIDDLE_SCREEN_RESOLUTION = 460 - PADDINGS_OUTSIDE
15
15
const SMALL_SCREEN_RESOLUTION = 360 - PADDINGS_OUTSIDE
16
16
17
17
const MonitorLog = ( ) => {
18
- const { timestamp, logFileId } = useSelector ( monitorSelector )
18
+ const { timestamp, logFileId, isSaveToFile } = useSelector ( monitorSelector )
19
19
const dispatch = useDispatch ( )
20
20
21
21
const duration = cutDurationText (
@@ -74,22 +74,24 @@ const MonitorLog = () => {
74
74
responsive = { false }
75
75
>
76
76
< EuiFlexItem grow = { false } >
77
- < EuiToolTip
78
- content = "Download Profiler Log"
79
- >
80
- < EuiButton
81
- size = "s"
82
- color = "secondary"
83
- href = { linkToDownload }
84
- iconType = "download"
85
- className = { styles . btn }
86
- data-testid = "download-log-btn"
87
- { ...downloadBtnProps }
77
+ { isSaveToFile && (
78
+ < EuiToolTip
79
+ content = "Download Profiler Log"
88
80
>
89
- { width > SMALL_SCREEN_RESOLUTION && ' Download ' }
90
- Log
91
- </ EuiButton >
92
- </ EuiToolTip >
81
+ < EuiButton
82
+ size = "s"
83
+ color = "secondary"
84
+ href = { linkToDownload }
85
+ iconType = "download"
86
+ className = { styles . btn }
87
+ data-testid = "download-log-btn"
88
+ { ...downloadBtnProps }
89
+ >
90
+ { width > SMALL_SCREEN_RESOLUTION && ' Download ' }
91
+ Log
92
+ </ EuiButton >
93
+ </ EuiToolTip >
94
+ ) }
93
95
</ EuiFlexItem >
94
96
< EuiFlexItem grow = { false } >
95
97
< EuiButton
Original file line number Diff line number Diff line change @@ -723,7 +723,7 @@ const AddStandaloneForm = (props: Props) => {
723
723
< EuiCheckbox
724
724
id = { `${ htmlIdGenerator ( ) ( ) } over db` }
725
725
name = "showDb"
726
- label = "Select the Redis logical database "
726
+ label = "Select Logical Database "
727
727
checked = { ! ! formik . values . showDb }
728
728
onChange = { handleChangeDbIndexCheckbox }
729
729
data-testid = "showDb"
You can’t perform that action at this time.
0 commit comments