WIP API
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { useState } from 'react';
|
||||
|
||||
import { reportInteraction, getAppEvents } from '@grafana/runtime';
|
||||
import { DataQuery } from '@grafana/schema';
|
||||
import { IconButton, Modal } from '@grafana/ui';
|
||||
import { notifyApp } from 'app/core/actions';
|
||||
import { createSuccessNotification } from 'app/core/copy/appNotification';
|
||||
@@ -25,7 +24,6 @@ interface ActionsCellProps {
|
||||
function ActionsCell({ queryTemplate, rootDatasourceUid, queryUid }: ActionsCellProps) {
|
||||
const [deleteQueryTemplate] = useDeleteQueryTemplateMutation();
|
||||
const [editFormOpen, setEditFormOpen] = useState(false);
|
||||
//const [editQueryTemplate] = useEditQueryTemplateMutation();
|
||||
const styles = useQueryLibraryListStyles();
|
||||
|
||||
const onDeleteQuery = (queryUid: string) => {
|
||||
|
||||
@@ -31,7 +31,7 @@ export const queryLibraryApi = createApi({
|
||||
editQueryTemplate: builder.mutation<void, EditQueryTemplateCommand>({
|
||||
query: (editQueryTemplateCommand) => ({
|
||||
url: `${editQueryTemplateCommand.uid}`,
|
||||
method: 'POST',
|
||||
method: 'PUT',
|
||||
data: convertQueryTemplateCommandToDataQuerySpec(editQueryTemplateCommand),
|
||||
}),
|
||||
invalidatesTags: ['QueryTemplatesList'],
|
||||
|
||||
Reference in New Issue
Block a user