Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
public
Mímir
Commits
70e419a8
Commit
70e419a8
authored
Aug 14, 2020
by
Aron Fiechter
Browse files
Show error message when query fails, keep previous results
parent
826739ff
Pipeline
#888
canceled with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
client/src/components/navbar/Query.js
View file @
70e419a8
...
...
@@ -38,7 +38,9 @@ export default function Query(props) {
value
=
{
text
}
onChange
=
{
onChangeText
}
/
>
<
span
className
=
"
text-danger
"
>
{
error
}
<
/span
>
<
span
className
=
"
text-danger position-absolute
"
style
=
{{
bottom
:
'
-12px
'
}}
>
{
error
}
<
/span
>
<
Button
variant
=
"
outline-success
"
type
=
"
submit
"
onClick
=
{
submit
}
>
<
span
role
=
"
img
"
aria
-
label
=
"
search icon
"
>
🔎
...
...
client/src/components/navbar/querySlice.js
View file @
70e419a8
...
...
@@ -23,7 +23,6 @@ export const querySlice = createSlice({
state
.
error
=
null
;
},
getQueryResultFailure
:
(
state
,
action
)
=>
{
state
.
result
=
null
;
state
.
error
=
action
.
payload
;
},
setLoading
:
(
state
,
action
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment