-
+
{{ 'nav.login' | translate }}(current)
-
+
(current)
diff --git a/src/app/shared/auth-nav-menu/auth-nav-menu.component.scss b/src/app/shared/auth-nav-menu/auth-nav-menu.component.scss
index 84e4916eff..7d4ec043ac 100644
--- a/src/app/shared/auth-nav-menu/auth-nav-menu.component.scss
+++ b/src/app/shared/auth-nav-menu/auth-nav-menu.component.scss
@@ -28,3 +28,7 @@
box-shadow: unset;
}
}
+
+.dropdown-toggle::after {
+ margin-left: 0;
+}
diff --git a/src/app/shared/auth-nav-menu/auth-nav-menu.component.ts b/src/app/shared/auth-nav-menu/auth-nav-menu.component.ts
index 16899cf73e..ca66ebd0a7 100644
--- a/src/app/shared/auth-nav-menu/auth-nav-menu.component.ts
+++ b/src/app/shared/auth-nav-menu/auth-nav-menu.component.ts
@@ -65,7 +65,7 @@ export class AuthNavMenuComponent implements OnInit {
* Whether user is authenticated.
* @type {Observable
}
*/
- public isAuthenticated: Observable;
+ public isAuthenticated$: Observable;
/**
* True if the authentication is loading.
@@ -75,7 +75,7 @@ export class AuthNavMenuComponent implements OnInit {
public isMobile$: Observable;
- public showAuth = observableOf(false);
+ public showAuth$ = observableOf(false);
public user: Observable;
@@ -90,14 +90,14 @@ export class AuthNavMenuComponent implements OnInit {
ngOnInit(): void {
// set isAuthenticated
- this.isAuthenticated = this.store.pipe(select(isAuthenticated));
+ this.isAuthenticated$ = this.store.pipe(select(isAuthenticated));
// set loading
this.loading = this.store.pipe(select(isAuthenticationLoading));
this.user = this.authService.getAuthenticatedUserFromStore();
- this.showAuth = this.store.pipe(
+ this.showAuth$ = this.store.pipe(
select(routerStateSelector),
filter((router: RouterReducerState) => isNotUndefined(router) && isNotUndefined(router.state)),
map((router: RouterReducerState) => (!router.state.url.startsWith(LOGIN_ROUTE)
diff --git a/src/app/shared/lang-switch/lang-switch.component.html b/src/app/shared/lang-switch/lang-switch.component.html
index 15bfd1ee96..0cfc210d0f 100644
--- a/src/app/shared/lang-switch/lang-switch.component.html
+++ b/src/app/shared/lang-switch/lang-switch.component.html
@@ -3,7 +3,7 @@
[attr.aria-label]="'nav.language' |translate"
aria-controls="language-menu-list"
aria-haspopup="menu"
- [title]="'nav.language' | translate" class="dropdown-toggle btn btn-link px-1"
+ [title]="'nav.language' | translate" class="dropdown-toggle btn btn-link px-0"
(click)="$event.preventDefault()" data-toggle="dropdown" ngbDropdownToggle
data-test="lang-switch"
tabindex="0">
@@ -11,6 +11,7 @@