Commit 8f325955 authored by Markus Scheidgen's avatar 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
......@@ -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>
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment