diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.html b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.html index 5e3b53f6..5ce5889d 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.html +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.html @@ -8,7 +8,11 @@ -
+
device_hub-->
; @@ -149,6 +151,14 @@ export class LeftSideComponent implements OnInit, OnDestroy { this.setFabInitial(MainMenu.Group); this.currentTabLable = MainMenu.Group; + + this.onLangChangeSubscription = merge( + this.translateService.onLangChange, + this.translateService.onDefaultLangChange, + this.translateService.onTranslationChange + ).subscribe(() => { + this.setFabInitial(this.currentTabLable); + }); } ngOnDestroy(): void { @@ -158,6 +168,9 @@ export class LeftSideComponent implements OnInit, OnDestroy { if (!!this.loginResSubscription) { this.loginResSubscription.unsubscribe(); } + if (!!this.onLangChangeSubscription) { + this.onLangChangeSubscription.unsubscribe(); + } if (!!this.badgeMessageInterval) { clearInterval(this.badgeMessageInterval);