Add dashboard context (database vs server) to scoped context (#893)

* explicitly add dashboard context to scoped context

* formatting
This commit is contained in:
Anthony Dresser
2018-03-13 13:54:37 -07:00
committed by GitHub
parent f3c7b2416b
commit 722f5e56cd
3 changed files with 6 additions and 2 deletions

View File

@@ -95,6 +95,7 @@ export abstract class DashboardPage extends AngularDisposable {
}
protected init() {
this.dashboardService.dashboardContextKey.set(this.context);
if (!this.dashboardService.connectionManagementService.connectionInfo) {
this.dashboardService.messageService.show(Severity.Warning, nls.localize('missingConnectionInfo', 'No connection information could be found for this dashboard'));
} else {