From cee5f030dc8d9bdd1ea3b3b4837fadb626603d93 Mon Sep 17 00:00:00 2001 From: Dominik Prokop Date: Tue, 5 Mar 2019 07:35:45 +0100 Subject: [PATCH] Fixed url of back button in datasource edit page, when root_url configured (#15759) * Fixed url of back button in datasource edit page, when root_url configured * Update snapshots * Use app config directly in ButtonRow instead of passing datasources page URL via prop * Snapshots update --- public/app/features/datasources/settings/ButtonRow.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/features/datasources/settings/ButtonRow.tsx b/public/app/features/datasources/settings/ButtonRow.tsx index 9f633ee6bcf..5bae5e7f98d 100644 --- a/public/app/features/datasources/settings/ButtonRow.tsx +++ b/public/app/features/datasources/settings/ButtonRow.tsx @@ -1,4 +1,5 @@ import React, { FC } from 'react'; +import config from 'app/core/config'; export interface Props { isReadOnly: boolean; @@ -23,7 +24,7 @@ const ButtonRow: FC = ({ isReadOnly, onDelete, onSubmit, onTest }) => { - + Back