File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed
components/webui/client/src
pages/SearchPage/SearchControls
SearchButton/SubmitButton Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -69,9 +69,7 @@ const SqlEditor = (props: SqlEditorProps) => {
69
69
placeholder : "Enter your SQL query" ,
70
70
scrollBeyondLastLine : false ,
71
71
wordWrap : "on" ,
72
- automaticLayout : true ,
73
72
} }
74
- width = "100%"
75
73
{ ...props } />
76
74
) ;
77
75
} ;
Original file line number Diff line number Diff line change @@ -15,17 +15,19 @@ import useSearchStore from "../../../SearchState/index";
15
15
const RunButton = ( ) => {
16
16
const queryString = useSearchStore ( ( state ) => state . queryString ) ;
17
17
18
- const isQueryStringEmpty = queryString === "" ;
19
- const tooltipTitle = isQueryStringEmpty ? "Enter SQL query to run" : "" ;
18
+ const isQueryStringEmpty = "" === queryString ;
19
+ const tooltipTitle = isQueryStringEmpty ?
20
+ "Enter SQL query to run" :
21
+ "" ;
20
22
21
23
return (
22
24
< Tooltip title = { tooltipTitle } >
23
25
< Button
26
+ color = { "green" }
27
+ disabled = { isQueryStringEmpty }
24
28
icon = { < CaretRightOutlined /> }
25
- color = "green"
26
- variant = "solid"
27
29
size = { "large" }
28
- disabled = { isQueryStringEmpty }
30
+ variant = { "solid" }
29
31
>
30
32
Run
31
33
</ Button >
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const SqlQueryInput = () => {
17
17
} , [ ] ) ;
18
18
19
19
return (
20
- < div className = { styles [ ` editorWrapper` ] || "" } >
20
+ < div className = { styles [ " editorWrapper" ] || "" } >
21
21
< SqlEditor
22
22
height = { "150px" }
23
23
onChange = { handleChange } />
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {
11
11
SETTINGS_STORAGE_ENGINE ,
12
12
} from "../../../../../config" ;
13
13
import { computeTimelineConfig } from "../../../SearchResults/SearchResultsTimeline/utils" ;
14
- import useSearchStore , { SEARCH_STATE_DEFAULT } from "../../../SearchState/index" ;
14
+ import useSearchStore from "../../../SearchState/index" ;
15
15
import { SEARCH_UI_STATE } from "../../../SearchState/typings" ;
16
16
import { handleQuerySubmit } from "../../search-requests" ;
17
17
import styles from "./index.module.css" ;
@@ -63,7 +63,7 @@ const SubmitButton = () => {
63
63
selectDataset ,
64
64
updateCachedDataset ] ) ;
65
65
66
- const isQueryStringEmpty = queryString === SEARCH_STATE_DEFAULT . queryString ;
66
+ const isQueryStringEmpty = "" === queryString ;
67
67
68
68
// Submit button must be disabled if there are no datasets since clp-s requires dataset option
69
69
// for queries.
You can’t perform that action at this time.
0 commit comments