feat(apps): progress on app dashboard sync

This commit is contained in:
Torkel Ödegaard
2016-07-08 12:26:51 +02:00
parent d44325affd
commit 85be7dd902
8 changed files with 78 additions and 36 deletions

View File

@@ -96,6 +96,7 @@ func (cmd *SaveDashboardCommand) GetDashboardModel() *Dashboard {
dash.UpdatedBy = cmd.UserId
dash.OrgId = cmd.OrgId
dash.PluginId = cmd.PluginId
dash.UpdateSlug()
return dash
}
@@ -120,6 +121,7 @@ type SaveDashboardCommand struct {
UserId int64 `json:"userId"`
OrgId int64 `json:"-"`
Overwrite bool `json:"overwrite"`
PluginId string `json:"-"`
Result *Dashboard
}