Skip to content

Commit 305a6ae

Browse files
committed
feat(dashboards): dashboard sharing fixes
1 parent 10daf1d commit 305a6ae

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

pkg/services/sqlstore/migrations/dashboard_mig.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,8 @@ func addDashboardMigration(mg *Migrator) {
107107
mg.AddMigration("Add column gnetId in dashboard", NewAddColumnMigration(dashboardV2, &Column{
108108
Name: "gnet_id", Type: DB_BigInt, Nullable: true,
109109
}))
110+
111+
mg.AddMigration("Add index for gnetId in dashboard", NewAddIndexMigration(dashboardV2, &Index{
112+
Cols: []string{"gnet_id"}, Type: IndexType,
113+
}))
110114
}

public/app/features/dashboard/import/dash_import.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ export class DashImportCtrl {
6969

7070
if (sources.length === 0) {
7171
inputModel.info = "No data sources of type " + input.pluginName + " found";
72-
} else if (inputModel.description) {
73-
inputModel.info = inputModel.description;
74-
} else {
72+
} else if (!inputModel.info) {
7573
inputModel.info = "Select a " + input.pluginName + " data source";
7674
}
7775

0 commit comments

Comments
 (0)