mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
removes unused property
This commit is contained in:
@@ -23,14 +23,13 @@ func SetRepository(rep Repository) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SaveDashboardItem struct {
|
type SaveDashboardItem struct {
|
||||||
TitleLower string
|
OrgId int64
|
||||||
OrgId int64
|
Folder string
|
||||||
Folder string
|
UpdatedAt time.Time
|
||||||
UpdatedAt time.Time
|
UserId int64
|
||||||
UserId int64
|
Message string
|
||||||
Message string
|
Overwrite bool
|
||||||
Overwrite bool
|
Dashboard *models.Dashboard
|
||||||
Dashboard *models.Dashboard
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type DashboardRepository struct{}
|
type DashboardRepository struct{}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package dashboards
|
package dashboards
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/grafana/grafana/pkg/components/simplejson"
|
"github.com/grafana/grafana/pkg/components/simplejson"
|
||||||
@@ -23,7 +22,6 @@ func createDashboardJson(data *simplejson.Json, lastModified time.Time, cfg *Das
|
|||||||
|
|
||||||
dash := &dashboards.SaveDashboardItem{}
|
dash := &dashboards.SaveDashboardItem{}
|
||||||
dash.Dashboard = models.NewDashboardFromJson(data)
|
dash.Dashboard = models.NewDashboardFromJson(data)
|
||||||
dash.TitleLower = strings.ToLower(dash.Dashboard.Title)
|
|
||||||
dash.UpdatedAt = lastModified
|
dash.UpdatedAt = lastModified
|
||||||
dash.Overwrite = true
|
dash.Overwrite = true
|
||||||
dash.OrgId = cfg.OrgId
|
dash.OrgId = cfg.OrgId
|
||||||
|
|||||||
Reference in New Issue
Block a user