diff --git a/demo-shell-ng2/app/app.component.ts b/demo-shell-ng2/app/app.component.ts
index 7a1835387b..8b3dec0f9b 100644
--- a/demo-shell-ng2/app/app.component.ts
+++ b/demo-shell-ng2/app/app.component.ts
@@ -74,10 +74,12 @@ export class AppComponent {
.subscribe(
() => {
this.router.navigate(['/login']);
+ this.hideDrawer();
},
($event: any) => {
if ($event && $event.response && $event.response.status === 401) {
this.router.navigate(['/login']);
+ this.hideDrawer();
} else {
console.error('An unknown error occurred while logging out', $event);
}
@@ -97,6 +99,7 @@ export class AppComponent {
changeLanguage(lang: string) {
this.translate.use(lang);
+ this.hideDrawer();
}
hideDrawer() {
diff --git a/demo-shell-ng2/index.html b/demo-shell-ng2/index.html
index 2fe2040a7f..aef1ee50c4 100644
--- a/demo-shell-ng2/index.html
+++ b/demo-shell-ng2/index.html
@@ -58,6 +58,12 @@
+