Просмотр исходного кода

Revert "Updated home dashboard, removed home dashboard header"

This reverts commit 0151846e1e0c624f2490dcf0bfbead5d0a8e9218.
Torkel Ödegaard 7 лет назад
Родитель
Сommit
2dc2471b5c
2 измененных файлов с 20 добавлено и 3 удалено
  1. 1 1
      pkg/api/dashboard.go
  2. 19 2
      public/dashboards/home.json

+ 1 - 1
pkg/api/dashboard.go

@@ -336,7 +336,7 @@ func addGettingStartedPanelToHomeDashboard(dash *simplejson.Json) {
 		"id":   123123,
 		"gridPos": map[string]interface{}{
 			"x": 0,
-			"y": 0,
+			"y": 3,
 			"w": 24,
 			"h": 4,
 		},

+ 19 - 2
public/dashboards/home.json

@@ -10,6 +10,23 @@
   "id": null,
   "links": [],
   "panels": [
+    {
+      "content": "<div class=\"text-center dashboard-header\">\n  <span>Home Dashboard</span>\n</div>",
+      "editable": true,
+      "id": 1,
+      "links": [],
+      "mode": "html",
+      "style": {},
+      "title": "",
+      "transparent": true,
+      "type": "text",
+      "gridPos": {
+        "w": 24,
+        "h": 3,
+        "x": 0,
+        "y": 0
+      }
+    },
     {
       "folderId": 0,
       "headings": true,
@@ -28,7 +45,7 @@
         "w": 12,
         "h": 17,
         "x": 0,
-        "y": 1
+        "y": 6
       }
     },
     {
@@ -43,7 +60,7 @@
         "w": 12,
         "h": 17,
         "x": 12,
-        "y": 1
+        "y": 6
       }
     }
   ],