Fixed #4567 adding open connectionDialog when no connection is available (#5581)

* Fixed #4567 adding open connectionDialog when no connection is available
This commit is contained in:
Yurong He
2019-05-23 15:11:10 -07:00
committed by GitHub
parent 34ca0e8671
commit 776e2cf6e7
5 changed files with 65 additions and 44 deletions

View File

@@ -279,7 +279,7 @@ export class NotebookComponent extends AngularDisposable implements OnInit, OnDe
defaultKernel: this._notebookParams.input.defaultKernel,
layoutChanged: this._notebookParams.input.layoutChanged,
capabilitiesService: this.capabilitiesService
}, this.profile, this.logService);
}, this.profile, this.logService, this.notificationService);
model.onError((errInfo: INotification) => this.handleModelError(errInfo));
let trusted = await this.notebookService.isNotebookTrustCached(this._notebookParams.notebookUri, this.isDirty());
await model.requestModelLoad(trusted);