Error in console

Yes
This error can be observed in the browser console by following steps:
http://localhost:4200/#/The error also persists in gsoc2019 branch. Post facelift merge, I suspect.馃槢
The bug should be fixed with the next PullRequest in the Facelift Branch. The problem was that the dialog was always opened independently of the cookie and then closed in the next step after checking the cookie.
welcome.component.ts
ngOnInit (): void {
this.configurationService.getApplicationConfiguration().subscribe((config: any) => {
if (config && config.application && !config.application.welcomeBanner) {
return
}
this.dialog.open(WelcomeBannerComponent, {
minWidth: '320px',
width: '35%',
position: {
top: '50px'
}
})
}, (err) => console.log(err))
}
&&
welcome-banner-component.ts
ngOnInit (): void {
let welcomeBannerStatus = this.cookieService.get(this.welcomeBannerStatusCookieKey)
if (welcomeBannerStatus === 'dismiss') {
this.dialogRef.close()
} else {
this.configurationService.getApplicationConfiguration().subscribe((config) => {
if (config && config.application) {
if (config.application.name !== null) {
this.applicationName = config.application.name
}
}
}, (err) => console.log(err))
}
}
The problem has been fixed by now checking the cookie before opening the dialog.
welcome.component.ts
ngOnInit (): void {
let welcomeBannerStatus = this.cookieService.get(this.welcomeBannerStatusCookieKey)
if (welcomeBannerStatus === 'dismiss') {
return
} else {
this.configurationService.getApplicationConfiguration().subscribe((config: any) => {
if (config && config.application && !config.application.welcomeBanner) {
return
}
this.dialog.open(WelcomeBannerComponent, {
minWidth: '320px',
width: '35%',
position: {
top: '50px'
}
})
}, (err) => console.log(err))
}
}
This thread has been automatically locked because it has not had recent activity after it was closed. :lock: Please open a new issue for regressions or related bugs.
This thread has been automatically locked because it has not had recent activity after it was closed. :lock: Please open a new issue for regressions or related bugs.
Most helpful comment
The bug should be fixed with the next PullRequest in the Facelift Branch. The problem was that the dialog was always opened independently of the cookie and then closed in the next step after checking the cookie.
welcome.component.ts&&
welcome-banner-component.tsThe problem has been fixed by now checking the cookie before opening the dialog.
welcome.component.ts