fix(apps): app dashboards can now be updated, fixes #4817

This commit is contained in:
Torkel Ödegaard
2016-04-26 12:52:44 +02:00
parent 34cb17546d
commit bce5c447b3
5 changed files with 20 additions and 17 deletions

View File

@@ -11,12 +11,13 @@ import (
)
type ImportDashboardCommand struct {
Path string `json:"string"`
Inputs []ImportDashboardInput `json:"inputs"`
Path string
Inputs []ImportDashboardInput
Overwrite bool
OrgId int64 `json:"-"`
UserId int64 `json:"-"`
PluginId string `json:"-"`
OrgId int64
UserId int64
PluginId string
Result *PluginDashboardInfoDTO
}
@@ -67,6 +68,7 @@ func ImportDashboard(cmd *ImportDashboardCommand) error {
Dashboard: generatedDash,
OrgId: cmd.OrgId,
UserId: cmd.UserId,
Overwrite: cmd.Overwrite,
}
if err := bus.Dispatch(&saveCmd); err != nil {