mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
QueryEditorRow: Ability to change query name (#29779)
* QueryEditorRow: Ability to change query name * Style tweaks * Updated UX * Fixed tests * Added validation messages * Fixed keyboard navigation * Updated tests
This commit is contained in:
@@ -3,7 +3,10 @@ import { DataFrame, DataTransformerConfig, TransformerRegistyItem } from '@grafa
|
||||
import { HorizontalGroup } from '@grafana/ui';
|
||||
|
||||
import { TransformationEditor } from './TransformationEditor';
|
||||
import { QueryOperationRow } from 'app/core/components/QueryOperationRow/QueryOperationRow';
|
||||
import {
|
||||
QueryOperationRow,
|
||||
QueryOperationRowRenderProps,
|
||||
} from 'app/core/components/QueryOperationRow/QueryOperationRow';
|
||||
import { QueryOperationAction } from 'app/core/components/QueryOperationRow/QueryOperationAction';
|
||||
import { TransformationsEditorTransformation } from './types';
|
||||
|
||||
@@ -28,7 +31,7 @@ export const TransformationOperationRow: React.FC<TransformationOperationRowProp
|
||||
}) => {
|
||||
const [showDebug, setShowDebug] = useState(false);
|
||||
|
||||
const renderActions = ({ isOpen }: { isOpen: boolean }) => {
|
||||
const renderActions = ({ isOpen }: QueryOperationRowRenderProps) => {
|
||||
return (
|
||||
<HorizontalGroup align="center" width="auto">
|
||||
<QueryOperationAction
|
||||
|
||||
Reference in New Issue
Block a user