API: added dashboardId and slug in response after import (#19692)

This commit is contained in:
Jon Gyllenswärd 2019-10-08 17:47:18 +02:00 committed by Torkel Ödegaard
parent 096e0e761e
commit 606392b4c6

View File

@ -97,6 +97,8 @@ func ImportDashboard(cmd *ImportDashboardCommand) error {
ImportedUrl: savedDash.GetUrl(),
ImportedRevision: dashboard.Data.Get("revision").MustInt64(1),
Imported: true,
DashboardId: savedDash.Id,
Slug: savedDash.Slug,
}
return nil