feat(dashboards): dashboard sharing fixes

This commit is contained in:
Torkel Ödegaard 2016-06-17 11:36:35 +02:00
parent 10daf1d63a
commit 305a6ae110
2 changed files with 5 additions and 3 deletions

View File

@ -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,
}))
}

View File

@ -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";
}