Browse Source
Feature/change menu icon if menu open (#231)
* Change menu icon
* Update changelog
pull/232/head
Thomas
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
13 additions and
1 deletions
-
CHANGELOG.md
-
apps/client/src/app/components/header/header.component.html
-
apps/client/src/app/components/header/header.component.ts
|
|
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
### Changed |
|
|
|
|
|
|
|
- Introduced tabs on the home page |
|
|
|
- Changed the menu icon if the menu is open on mobile |
|
|
|
|
|
|
|
## 1.28.0 - 24.07.2021 |
|
|
|
|
|
|
|
|
|
@ -106,6 +106,8 @@ |
|
|
|
class="no-min-width px-1" |
|
|
|
mat-flat-button |
|
|
|
[matMenuTriggerFor]="accountMenu" |
|
|
|
(menuClosed)="onMenuClosed()" |
|
|
|
(menuOpened)="onMenuOpened()" |
|
|
|
> |
|
|
|
<ion-icon |
|
|
|
class="d-none d-sm-block" |
|
|
@ -114,8 +116,8 @@ |
|
|
|
></ion-icon> |
|
|
|
<ion-icon |
|
|
|
class="d-block d-sm-none" |
|
|
|
name="menu-outline" |
|
|
|
size="large" |
|
|
|
[name]="isMenuOpen ? 'close-outline' : 'menu-outline'" |
|
|
|
></ion-icon> |
|
|
|
</button> |
|
|
|
<mat-menu #accountMenu="matMenu" xPosition="before"> |
|
|
|
|
|
@ -38,6 +38,7 @@ export class HeaderComponent implements OnChanges { |
|
|
|
public hasPermissionForSubscription: boolean; |
|
|
|
public hasPermissionToAccessAdminControl: boolean; |
|
|
|
public impersonationId: string; |
|
|
|
public isMenuOpen: boolean; |
|
|
|
|
|
|
|
private unsubscribeSubject = new Subject<void>(); |
|
|
|
|
|
|
@ -84,6 +85,14 @@ export class HeaderComponent implements OnChanges { |
|
|
|
window.location.reload(); |
|
|
|
} |
|
|
|
|
|
|
|
public onMenuClosed() { |
|
|
|
this.isMenuOpen = false; |
|
|
|
} |
|
|
|
|
|
|
|
public onMenuOpened() { |
|
|
|
this.isMenuOpen = true; |
|
|
|
} |
|
|
|
|
|
|
|
public onSignOut() { |
|
|
|
this.signOut.next(); |
|
|
|
} |
|
|
|