mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 02:42:11 +08:00
Monaco: add suggestions for template variables (#25921)
* now with suggestions * using suggestions API * using variable suggestions * using variable suggestions * show variables * minor cleanup * add @alpha warning * Do not produce data variables if panel does not support queries Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
This commit is contained in:
@ -1,9 +1,7 @@
|
||||
import React from 'react';
|
||||
import { useAsyncDependency } from '../../utils/useAsyncDependency';
|
||||
import { ErrorWithStack, LoadingPlaceholder } from '..';
|
||||
import { CodeEditorProps } from './CodeEditor';
|
||||
|
||||
export type CodeEditorChangeHandler = (value: string) => void;
|
||||
import { CodeEditorProps } from './types';
|
||||
|
||||
export const CodeEditor: React.FC<CodeEditorProps> = props => {
|
||||
const { loading, error, dependency } = useAsyncDependency(
|
||||
@ -11,7 +9,7 @@ export const CodeEditor: React.FC<CodeEditorProps> = props => {
|
||||
);
|
||||
|
||||
if (loading) {
|
||||
return <LoadingPlaceholder text={'Loading...'} />;
|
||||
return <LoadingPlaceholder text={''} />;
|
||||
}
|
||||
|
||||
if (error) {
|
||||
|
Reference in New Issue
Block a user