Add onClosed event to ModelView dialogs (#17531)

* Add onClosed event to ModelView dialogs

* Use defined type

* Fix compile

* fix tests

* fix tests2

* Remove unused
This commit is contained in:
Charles Gagnon
2021-10-28 20:53:20 -07:00
committed by GitHub
parent 62b6e781ce
commit 82805638ad
12 changed files with 82 additions and 15 deletions

View File

@@ -18,7 +18,7 @@ export class CustomDialogService {
constructor(@IInstantiationService private _instantiationService: IInstantiationService) { }
public showDialog(dialog: Dialog, dialogName?: string, options?: IModalOptions): void {
public showDialog(dialog: Dialog, dialogName?: string, options?: IModalOptions): DialogModal {
let name = dialogName ? dialogName : 'CustomDialog';
if (options && (options.dialogStyle === 'callout')) {
@@ -30,6 +30,7 @@ export class CustomDialogService {
this._dialogModals.set(dialog, dialogModal);
dialogModal.render();
dialogModal.open();
return dialogModal;
}
public showWizard(wizard: Wizard, options?: IModalOptions, source?: string): void {