Internationalisation: Manual mark up following review (#107625)
* mark up and add confirmText to lint rule * mark up and add ariaLabel to lint rule * add confirmText to propertiesToCheck * mark up and add body to propsToCheck * mark up latest * mark up 'Dashboard saved' * mark up filterbyvalue options * mark up tooltip options * mark up and add lint rules for noOptionsMessage/loadingMessage * mark up 'Convert field type' * mark up placeholderText/noOptionsMessage * mark up run query * mark up variable editor fields * mark up week start options * mark up dashboard link options * mark up prom options * mark up builder/code toggles * make CI happy * kick CI
This commit is contained in:
@@ -28,11 +28,6 @@ export interface QueryHeaderProps {
|
||||
queryRowFilter: QueryRowFilter;
|
||||
}
|
||||
|
||||
const editorModes = [
|
||||
{ label: 'Builder', value: EditorMode.Builder },
|
||||
{ label: 'Code', value: EditorMode.Code },
|
||||
];
|
||||
|
||||
export function QueryHeader({
|
||||
db,
|
||||
dialect,
|
||||
@@ -51,6 +46,14 @@ export function QueryHeader({
|
||||
|
||||
const htmlId = useId();
|
||||
|
||||
const editorModes = [
|
||||
{
|
||||
label: t('grafana-sql.components.query-header.editor-modes.label-builder', 'Builder'),
|
||||
value: EditorMode.Builder,
|
||||
},
|
||||
{ label: t('grafana-sql.components.query-header.editor-modes.label-code', 'Code'), value: EditorMode.Code },
|
||||
];
|
||||
|
||||
const onEditorModeChange = useCallback(
|
||||
(newEditorMode: EditorMode) => {
|
||||
if (newEditorMode === EditorMode.Code) {
|
||||
|
||||
Reference in New Issue
Block a user