Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
bd933bad
Commit
bd933bad
authored
Apr 22, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4779 from bergquist/fix_snapshots
Fix broken snapshots in grafana 2.6
parents
0fb4141c
51de8946
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
pkg/api/dashboard_snapshot.go
+4
-0
pkg/models/dashboard_snapshot.go
+1
-1
No files found.
pkg/api/dashboard_snapshot.go
View file @
bd933bad
...
...
@@ -21,6 +21,10 @@ func GetSharingOptions(c *middleware.Context) {
}
func
CreateDashboardSnapshot
(
c
*
middleware
.
Context
,
cmd
m
.
CreateDashboardSnapshotCommand
)
{
if
cmd
.
Name
==
""
{
cmd
.
Name
=
"Unnamed snapshot"
}
if
cmd
.
External
{
// external snapshot ref requires key and delete key
if
cmd
.
Key
==
""
||
cmd
.
DeleteKey
==
""
{
...
...
pkg/models/dashboard_snapshot.go
View file @
bd933bad
...
...
@@ -45,7 +45,7 @@ type DashboardSnapshotDTO struct {
type
CreateDashboardSnapshotCommand
struct
{
Dashboard
*
simplejson
.
Json
`json:"dashboard" binding:"Required"`
Name
string
`json:"name"
binding:"Required"
`
Name
string
`json:"name"`
Expires
int64
`json:"expires"`
// these are passed when storing an external snapshot ref
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment