feat(dashboards): dashboard sharing fixes

pull/4981/merge
Torkel Ödegaard 9 years ago
parent 10daf1d63a
commit 305a6ae110
  1. 4
      pkg/services/sqlstore/migrations/dashboard_mig.go
  2. 4
      public/app/features/dashboard/import/dash_import.ts

@ -107,4 +107,8 @@ func addDashboardMigration(mg *Migrator) {
mg.AddMigration("Add column gnetId in dashboard", NewAddColumnMigration(dashboardV2, &Column{
Name: "gnet_id", Type: DB_BigInt, Nullable: true,
}))
mg.AddMigration("Add index for gnetId in dashboard", NewAddIndexMigration(dashboardV2, &Index{
Cols: []string{"gnet_id"}, Type: IndexType,
}))
}

@ -69,9 +69,7 @@ export class DashImportCtrl {
if (sources.length === 0) {
inputModel.info = "No data sources of type " + input.pluginName + " found";
} else if (inputModel.description) {
inputModel.info = inputModel.description;
} else {
} else if (!inputModel.info) {
inputModel.info = "Select a " + input.pluginName + " data source";
}

Loading…
Cancel
Save