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

pull/19625/head^2
Jon Gyllenswärd 6 years ago committed by Torkel Ödegaard
parent 096e0e761e
commit 606392b4c6
  1. 2
      pkg/plugins/dashboard_importer.go

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

Loading…
Cancel
Save