mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 20:59:35 +08:00
Added statements in constructor
This commit is contained in:
@ -43,6 +43,8 @@ func NewDashboard(title string) *Dashboard {
|
||||
dash.Data = make(map[string]interface{})
|
||||
dash.Data["title"] = title
|
||||
dash.Title = title
|
||||
dash.Created = time.Now()
|
||||
dash.Updated = time.Now()
|
||||
dash.UpdateSlug()
|
||||
return dash
|
||||
}
|
||||
|
Reference in New Issue
Block a user