diff --git a/pkg/api/api.go b/pkg/api/api.go index 430b81f2380..4cebd56d5b1 100644 --- a/pkg/api/api.go +++ b/pkg/api/api.go @@ -34,6 +34,7 @@ func Register(r *macaron.Macaron) { r.Get("/org/", reqSignedIn, Index) r.Get("/org/new", reqSignedIn, Index) r.Get("/datasources/", reqSignedIn, Index) + r.Get("/datasources/new", reqSignedIn, Index) r.Get("/datasources/edit/*", reqSignedIn, Index) r.Get("/org/users/", reqSignedIn, Index) r.Get("/org/apikeys/", reqSignedIn, Index) diff --git a/public/app/features/plugins/ds_edit_ctrl.ts b/public/app/features/plugins/ds_edit_ctrl.ts index c33fe5a3b3d..0f234fb6b90 100644 --- a/public/app/features/plugins/ds_edit_ctrl.ts +++ b/public/app/features/plugins/ds_edit_ctrl.ts @@ -168,15 +168,13 @@ coreModule.directive('datasourceHttpSettings', function() { return { scope: { current: "=", - defaultUrl: "=" + suggestUrl: "@", }, templateUrl: 'public/app/features/plugins/partials/ds_http_settings.html', link: { pre: function($scope, elem, attrs) { - $scope.suggestDefaultUrl = function() { - return [ - $scope.defaultUrl - ]; + $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 90feed80935..0022f6e6c19 100644 --- a/public/app/features/plugins/partials/ds_http_settings.html +++ b/public/app/features/plugins/partials/ds_http_settings.html @@ -6,7 +6,10 @@
Specify a complete HTTP url (for example http://your_server:8080)
diff --git a/public/app/plugins/datasource/elasticsearch/partials/config.html b/public/app/plugins/datasource/elasticsearch/partials/config.html index 85554b59988..03662a9693b 100644 --- a/public/app/plugins/datasource/elasticsearch/partials/config.html +++ b/public/app/plugins/datasource/elasticsearch/partials/config.html @@ -1,4 +1,4 @@ -