From 9a5f4d9fd2cb866f0f132350d15106d3707f71ae Mon Sep 17 00:00:00 2001 From: Sasikumar D R Date: Mon, 18 Feb 2019 16:23:51 +0530 Subject: [PATCH] fix(dialog): accept partial of component in NbDialogService open context (#1175) Closes #1173 --- src/framework/theme/components/dialog/dialog.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/framework/theme/components/dialog/dialog.service.ts b/src/framework/theme/components/dialog/dialog.service.ts index a8fca7870d..04ac77f655 100644 --- a/src/framework/theme/components/dialog/dialog.service.ts +++ b/src/framework/theme/components/dialog/dialog.service.ts @@ -150,7 +150,8 @@ export class NbDialogService { /** * Opens new instance of the dialog, may receive optional config. * */ - open(content: Type | TemplateRef, userConfig: Partial> = {}): NbDialogRef { + open(content: Type | TemplateRef, + userConfig: Partial | string>> = {}): NbDialogRef { const config = new NbDialogConfig({ ...this.globalConfig, ...userConfig }); const overlayRef = this.createOverlay(config); const dialogRef = new NbDialogRef(overlayRef);