|
|
@@ -204,10 +204,14 @@ coreModule.directive('datasourceHttpSettings', function() {
|
|
|
scope: {
|
|
|
current: '=',
|
|
|
suggestUrl: '@',
|
|
|
+ noDirectAccess: '@',
|
|
|
},
|
|
|
templateUrl: 'public/app/features/plugins/partials/ds_http_settings.html',
|
|
|
link: {
|
|
|
pre: function($scope, elem, attrs) {
|
|
|
+ // do not show access option if direct access is disabled
|
|
|
+ $scope.showAccessOption = $scope.noDirectAccess !== 'true';
|
|
|
+
|
|
|
$scope.getSuggestUrls = function() {
|
|
|
return [$scope.suggestUrl];
|
|
|
};
|