mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Tempo: Add a placeholder for the Limit field under the Search tab (#55557)
This commit is contained in:
parent
69f8b32dc0
commit
62046449d2
@ -23,7 +23,7 @@ import { notifyApp } from 'app/core/actions';
|
||||
import { createErrorNotification } from 'app/core/copy/appNotification';
|
||||
import { dispatch } from 'app/store/store';
|
||||
|
||||
import { TempoDatasource } from '../datasource';
|
||||
import { DEFAULT_LIMIT, TempoDatasource } from '../datasource';
|
||||
import TempoLanguageProvider from '../language_provider';
|
||||
import { tokenizer } from '../syntax';
|
||||
import { TempoQuery } from '../types';
|
||||
@ -284,6 +284,7 @@ const NativeSearch = ({ datasource, query, onChange, onBlur, onRunQuery }: Props
|
||||
<Input
|
||||
id="limit"
|
||||
value={query.limit || ''}
|
||||
placeholder={`Default: ${DEFAULT_LIMIT}`}
|
||||
type="number"
|
||||
onChange={(v) => {
|
||||
let limit = v.currentTarget.value ? parseInt(v.currentTarget.value, 10) : undefined;
|
||||
|
Loading…
Reference in New Issue
Block a user