diff --git a/pkg/api/api.go b/pkg/api/api.go
index c42bb376df2..034d9adc180 100644
--- a/pkg/api/api.go
+++ b/pkg/api/api.go
@@ -69,6 +69,7 @@ func Register(r *macaron.Macaron) {
// dashboard snapshots
r.Get("/dashboard/snapshot/*", Index)
+ r.Get("/dashboard/snapshots/", reqSignedIn, Index)
// api for dashboard snapshots
r.Post("/api/snapshots/", bind(m.CreateDashboardSnapshotCommand{}), CreateDashboardSnapshot)
diff --git a/pkg/api/index.go b/pkg/api/index.go
index 3423651922a..ca2f9320215 100644
--- a/pkg/api/index.go
+++ b/pkg/api/index.go
@@ -63,7 +63,7 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) {
data.MainNavLinks = append(data.MainNavLinks, &dtos.NavLink{
Text: "Snapshots",
Icon: "fa fa-fw fa-camera-retro",
- Url: "/snapshots",
+ Url: "/dashboard/snapshots",
})
if c.OrgRole == m.ROLE_ADMIN {
diff --git a/pkg/services/sqlstore/dashboard_snapshot.go b/pkg/services/sqlstore/dashboard_snapshot.go
index eef2898a7c0..64e7e31898c 100644
--- a/pkg/services/sqlstore/dashboard_snapshot.go
+++ b/pkg/services/sqlstore/dashboard_snapshot.go
@@ -68,7 +68,7 @@ func GetDashboardSnapshot(query *m.GetDashboardSnapshotQuery) error {
func SearchDashboardSnapshots(query *m.GetDashboardSnapshotsQuery) error {
var snapshots = make(m.DashboardSnapshots, 0)
- sess := x.Cols("name,key,delete_key").Limit(query.Limit)
+ sess := x.Limit(query.Limit)
if query.Name != "" {
sess.Where("name LIKE ?", query.Name)
diff --git a/public/app/features/all.js b/public/app/features/all.js
index d4436c9deaa..4ec4719ebdd 100644
--- a/public/app/features/all.js
+++ b/public/app/features/all.js
@@ -5,6 +5,7 @@ define([
'./templating/templateSrv',
'./dashboard/all',
'./playlist/all',
+ './snapshot/all',
'./panel/all',
'./profile/profileCtrl',
'./profile/changePasswordCtrl',
diff --git a/public/app/features/snapshot/all.js b/public/app/features/snapshot/all.js
new file mode 100644
index 00000000000..45cb9eb594f
--- /dev/null
+++ b/public/app/features/snapshot/all.js
@@ -0,0 +1,4 @@
+define([
+ './snapshot_ctrl',
+ './snapshot_routes'
+], function () {});
diff --git a/public/app/features/snapshot/partials/snapshots.html b/public/app/features/snapshot/partials/snapshots.html
new file mode 100644
index 00000000000..58b6c872617
--- /dev/null
+++ b/public/app/features/snapshot/partials/snapshots.html
@@ -0,0 +1,39 @@
+
Name | +Snapshot url | ++ | + + + + |
---|---|---|---|
+ {{snapshot.Name}} + | ++ dashboard/snapshot/{{snapshot.Key}} + | ++ + + View + + | ++ + + + | +