From 9e59751c073792ae6fedd48086716833b550e3b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 4 Jun 2018 18:05:16 +0200 Subject: [PATCH] fix: fixed problem with expanding access mode help in ds settings --- public/app/features/plugins/ds_edit_ctrl.ts | 4 ++++ public/app/features/plugins/partials/ds_http_settings.html | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/public/app/features/plugins/ds_edit_ctrl.ts b/public/app/features/plugins/ds_edit_ctrl.ts index f86cc694255..7e4521a8b58 100644 --- a/public/app/features/plugins/ds_edit_ctrl.ts +++ b/public/app/features/plugins/ds_edit_ctrl.ts @@ -211,6 +211,10 @@ coreModule.directive('datasourceHttpSettings', function() { pre: function($scope, elem, attrs) { // do not show access option if direct access is disabled $scope.showAccessOption = $scope.noDirectAccess !== 'true'; + $scope.showAccessHelp = false; + $scope.toggleAccessHelp = function() { + $scope.showAccessHelp = !$scope.showAccessHelp; + }; $scope.getSuggestUrls = function() { return [$scope.suggestUrl]; diff --git a/public/app/features/plugins/partials/ds_http_settings.html b/public/app/features/plugins/partials/ds_http_settings.html index b35aab0c099..3af185d862c 100644 --- a/public/app/features/plugins/partials/ds_http_settings.html +++ b/public/app/features/plugins/partials/ds_http_settings.html @@ -30,7 +30,7 @@
-
-
+

Access mode controls how requests to the data source will be handled.