Skip to content

Commit

Permalink
fix(dialog): accept partial of component in NbDialogService open cont…
Browse files Browse the repository at this point in the history
…ext (#1175)

Closes #1173
  • Loading branch information
sasikumardr authored and nnixaa committed Feb 18, 2019
1 parent dadff29 commit 9a5f4d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/framework/theme/components/dialog/dialog.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ export class NbDialogService {
/**
* Opens new instance of the dialog, may receive optional config.
* */
open<T>(content: Type<T> | TemplateRef<T>, userConfig: Partial<NbDialogConfig<T>> = {}): NbDialogRef<T> {
open<T>(content: Type<T> | TemplateRef<T>,
userConfig: Partial<NbDialogConfig<Partial<T> | string>> = {}): NbDialogRef<T> {
const config = new NbDialogConfig({ ...this.globalConfig, ...userConfig });
const overlayRef = this.createOverlay(config);
const dialogRef = new NbDialogRef<T>(overlayRef);
Expand Down

0 comments on commit 9a5f4d9

Please sign in to comment.