Skip to content

Commit b8ed6cb

Browse files
authored
fix: open quote dialog after login (#1940)
* prevent closing the dialog immediately after opening
1 parent eb41779 commit b8ed6cb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/app/extensions/quoting/shared/product-add-to-quote-dialog/product-add-to-quote-dialog.component.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ export class ProductAddToQuoteDialogComponent implements OnInit {
3333
this.state$ = this.context.select('state');
3434
this.error$ = this.context.select('error');
3535

36-
this.context.hold(this.router.events.pipe(filter(event => event instanceof NavigationEnd)), () => this.hide());
36+
// prevent closing the dialog immediately after opening it
37+
setTimeout(() => {
38+
// close dialog if the user clicks a link within the dialog
39+
this.context.hold(this.router.events.pipe(filter(event => event instanceof NavigationEnd)), () => this.hide());
40+
}, 1000);
3741
}
3842

3943
hide() {

0 commit comments

Comments
 (0)