diff --git a/src/app/core/facades/account.facade.ts b/src/app/core/facades/account.facade.ts index d046524e2d5..2a7e2c9e79e 100644 --- a/src/app/core/facades/account.facade.ts +++ b/src/app/core/facades/account.facade.ts @@ -17,6 +17,7 @@ import { getAllAddresses, loadAddresses, } from 'ish-core/store/customer/addresses'; +import { getUserRoles } from 'ish-core/store/customer/authorization'; import { getOrders, getOrdersLoading, getSelectedOrder, loadOrders } from 'ish-core/store/customer/orders'; import { createUser, @@ -60,6 +61,7 @@ export class AccountFacade { userError$ = this.store.pipe(select(getUserError)); userLoading$ = this.store.pipe(select(getUserLoading)); isLoggedIn$ = this.store.pipe(select(getUserAuthorized)); + roles$ = this.store.pipe(select(getUserRoles)); loginUser(credentials: Credentials) { this.store.dispatch(loginUser({ credentials })); diff --git a/src/app/pages/account/account-navigation/account-navigation.component.html b/src/app/pages/account/account-navigation/account-navigation.component.html index 11bb30f1249..d75672baaf7 100644 --- a/src/app/pages/account/account-navigation/account-navigation.component.html +++ b/src/app/pages/account/account-navigation/account-navigation.component.html @@ -1,5 +1,6 @@