diff --git a/public/app/features/plugins/ds_edit_ctrl.ts b/public/app/features/plugins/ds_edit_ctrl.ts index a3e78c33a15..c33fe5a3b3d 100644 --- a/public/app/features/plugins/ds_edit_ctrl.ts +++ b/public/app/features/plugins/ds_edit_ctrl.ts @@ -166,7 +166,19 @@ coreModule.controller('DataSourceEditCtrl', DataSourceEditCtrl); coreModule.directive('datasourceHttpSettings', function() { return { - scope: {current: "="}, - templateUrl: 'public/app/features/plugins/partials/ds_http_settings.html' + scope: { + current: "=", + defaultUrl: "=" + }, + templateUrl: 'public/app/features/plugins/partials/ds_http_settings.html', + link: { + pre: function($scope, elem, attrs) { + $scope.suggestDefaultUrl = function() { + return [ + $scope.defaultUrl + ]; + }; + } + } }; }); diff --git a/public/app/features/plugins/partials/ds_http_settings.html b/public/app/features/plugins/partials/ds_http_settings.html index 08d2af5744a..90feed80935 100644 --- a/public/app/features/plugins/partials/ds_http_settings.html +++ b/public/app/features/plugins/partials/ds_http_settings.html @@ -6,7 +6,7 @@
Specify a complete HTTP url (for example http://your_server:8080)
@@ -57,7 +57,7 @@