Skip to content

Commit

Permalink
Expose ToBuilder() from DashboardModel
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Phoen committed May 15, 2022
1 parent 68ca46f commit 5ca4091
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion decoder/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type DashboardModel struct {
Rows []DashboardRow
}

func (d *DashboardModel) toDashboardBuilder() (dashboard.Builder, error) {
func (d *DashboardModel) ToBuilder() (dashboard.Builder, error) {
emptyDashboard := dashboard.Builder{}
opts := []dashboard.Option{
d.editable(),
Expand Down
2 changes: 1 addition & 1 deletion decoder/yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ func UnmarshalYAML(input io.Reader) (dashboard.Builder, error) {
return dashboard.Builder{}, err
}

return parsed.toDashboardBuilder()
return parsed.ToBuilder()
}

0 comments on commit 5ca4091

Please sign in to comment.