Merge pull request #4176 from GabrielInTheWorld/fix-close-sidenav
Fixes #4173
This commit is contained in:
commit
2d0eab9b20
1
AUTHORS
1
AUTHORS
@ -29,3 +29,4 @@ Authors of OpenSlides in chronological order of first contribution:
|
||||
Raimund Renkert <raimund@renkert.org>
|
||||
Jochen Saalfeld <jochen.saalfeld@intevation.de>
|
||||
Fadi Abbud <fmfn13@hotmail.com>
|
||||
Gabriel Meyer <meyergabriel@live.de>
|
||||
|
@ -29,11 +29,20 @@
|
||||
<span> {{ getLangName(this.translate.currentLang) }} </span>
|
||||
</a>
|
||||
<div *ngIf="isLoggedIn">
|
||||
<a (click)="editProfile()" mat-list-item>
|
||||
<a
|
||||
[routerLink]="['/users/', operator.user.id]"
|
||||
(click)="mobileAutoCloseNav()"
|
||||
mat-list-item
|
||||
>
|
||||
<mat-icon>person</mat-icon>
|
||||
<span translate>Edit profile</span>
|
||||
</a>
|
||||
<a *osPerms="'users.can_change_password'" (click)="changePassword()" mat-list-item>
|
||||
<a
|
||||
*osPerms="'users.can_change_password'"
|
||||
routerLink="/users/password"
|
||||
(click)="mobileAutoCloseNav()"
|
||||
mat-list-item
|
||||
>
|
||||
<mat-icon>vpn_key</mat-icon>
|
||||
<span translate>Change password</span>
|
||||
</a>
|
||||
|
@ -150,20 +150,6 @@ export class SiteComponent extends BaseComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Implement this
|
||||
public editProfile(): void {
|
||||
if (this.operator.user) {
|
||||
this.router.navigate([`./users/${this.operator.user.id}`]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Redirects to the change password component
|
||||
*/
|
||||
public changePassword(): void {
|
||||
this.router.navigate([`./users/password`]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Function to log out the current user
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user