fix(default datasource): minor fix for handling of default datasource

This commit is contained in:
Torkel Ödegaard 2015-08-18 14:54:56 +02:00
parent 4f8cea6e2d
commit 50281f12b9
2 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,7 @@ func getFrontendSettingsMap(c *middleware.Context) (map[string]interface{}, erro
}
if defaultDatasource == "" {
defaultDatasource = "grafana"
defaultDatasource = "-- Grafana --"
}
jsonObj := map[string]interface{}{

View File

@ -37,6 +37,7 @@ function (angular, app, _, TimeSeries, kbn, PanelMeta) {
// Set and populate defaults
var _d = {
links: [],
datasource: null,
maxDataPoints: 100,
interval: null,
targets: [{}],