diff --git a/public/app/features/datasources/settings/ButtonRow.test.tsx b/public/app/features/datasources/settings/ButtonRow.test.tsx index 84b16d829d5..2e177755493 100644 --- a/public/app/features/datasources/settings/ButtonRow.test.tsx +++ b/public/app/features/datasources/settings/ButtonRow.test.tsx @@ -8,6 +8,7 @@ const setup = (propOverrides?: object) => { onSubmit: jest.fn(), onDelete: jest.fn(), onTest: jest.fn(), + exploreUrl: '/explore', }; Object.assign(props, propOverrides); diff --git a/public/app/features/datasources/settings/ButtonRow.tsx b/public/app/features/datasources/settings/ButtonRow.tsx index 7631b47bd40..8b744f68667 100644 --- a/public/app/features/datasources/settings/ButtonRow.tsx +++ b/public/app/features/datasources/settings/ButtonRow.tsx @@ -5,18 +5,22 @@ import config from 'app/core/config'; import { Button, LinkButton } from '@grafana/ui'; export interface Props { + exploreUrl: string; isReadOnly: boolean; onDelete: () => void; onSubmit: (event: any) => void; onTest: (event: any) => void; } -const ButtonRow: FC = ({ isReadOnly, onDelete, onSubmit, onTest }) => { +const ButtonRow: FC = ({ isReadOnly, onDelete, onSubmit, onTest, exploreUrl }) => { return (
- + Back + + Explore +