Commit 6b4dcb38 by Torkel Ödegaard

Restored http settings directive that was hidden in an unused angular controller page

parent 03c6cc59
...@@ -11,3 +11,4 @@ import './alerting/NotificationsListCtrl'; ...@@ -11,3 +11,4 @@ import './alerting/NotificationsListCtrl';
import './manage-dashboards'; import './manage-dashboards';
import './teams/CreateTeamCtrl'; import './teams/CreateTeamCtrl';
import './profile/all'; import './profile/all';
import './datasources/settings/HttpSettingsCtrl';
import { coreModule } from 'app/core/core';
coreModule.directive('datasourceHttpSettings', () => {
return {
scope: {
current: '=',
suggestUrl: '@',
noDirectAccess: '@',
},
templateUrl: 'public/app/features/datasources/partials/http_settings.html',
link: {
pre: ($scope, elem, attrs) => {
// do not show access option if direct access is disabled
$scope.showAccessOption = $scope.noDirectAccess !== 'true';
$scope.showAccessHelp = false;
$scope.toggleAccessHelp = () => {
$scope.showAccessHelp = !$scope.showAccessHelp;
};
$scope.getSuggestUrls = () => {
return [$scope.suggestUrl];
};
},
},
};
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment