Added system admin skeleton

This commit is contained in:
Torkel Ödegaard
2015-01-11 12:12:29 +01:00
parent dc16c8c60c
commit 8e65f36131
4 changed files with 11 additions and 26 deletions
+1 -7
View File
@@ -25,7 +25,7 @@ func getFrontendSettings(c *middleware.Context) (map[string]interface{}, error)
datasources := make(map[string]interface{})
for i, ds := range accountDataSources {
for _, ds := range accountDataSources {
url := ds.Url
if ds.Access == m.DS_ACCESS_PROXY {
@@ -46,12 +46,6 @@ func getFrontendSettings(c *middleware.Context) (map[string]interface{}, error)
}
}
// temp hack, first is always default
// TODO: implement default ds account setting
if i == 0 {
dsMap["default"] = true
}
datasources[ds.Name] = dsMap
}