Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
8f325955
Commit
8f325955
authored
Sep 03, 2020
by
Markus Scheidgen
Browse files
Remove optimade query from non dft search bar.
parent
632d7fd2
Pipeline
#81525
passed with stages
in 29 minutes and 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gui/src/components/search/SearchBar.js
View file @
8f325955
...
...
@@ -6,6 +6,7 @@ import { CircularProgress, InputAdornment, Button, Tooltip } from '@material-ui/
import
searchQuantities
from
'
../../searchQuantities
'
import
{
apiContext
}
from
'
../api
'
import
{
defsByName
as
metainfoDefs
}
from
'
../archive/metainfo
'
import
{
domains
}
from
'
../domains
'
const
metainfoOptions
=
[]
...
...
@@ -283,11 +284,12 @@ export default function SearchBar() {
...
params
,
startAdornment
:
(
<
React
.
Fragment
>
{
domain
===
domains
.
dft
&&
<
InputAdornment
position
=
"
start
"
>
<
Tooltip
title
=
"
Switch between NOMAD's quantity=value search and the Optimade filter language.
"
>
<
Button
onClick
=
{
handleSearchTypeClicked
}
size
=
"
small
"
>
{
searchType
}
<
/Button
>
<
/Tooltip
>
<
/InputAdornment
>
<
/InputAdornment>
}
{
params
.
startAdornment
}
<
/React.Fragment
>
)
...
...
Write
Preview
Supports
Markdown
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