From d043133de16e9c75e1fe2b0356f158dcaa63cd90 Mon Sep 17 00:00:00 2001 From: GabrielMeyer Date: Wed, 23 Jan 2019 17:14:28 +0100 Subject: [PATCH] Fixes #4173 Added the function to autoclose the sidenavigation when working on a mobile-device. Removed unnecessary functions. Resolved answers of pull-request - Added myself to the AUTHORS-file - Used square brackets for 'routerLink' --- AUTHORS | 1 + client/src/app/site/site.component.html | 13 +++++++++++-- client/src/app/site/site.component.ts | 14 -------------- 3 files changed, 12 insertions(+), 16 deletions(-) diff --git a/AUTHORS b/AUTHORS index e1a6a2c23..e438973a9 100644 --- a/AUTHORS +++ b/AUTHORS @@ -29,3 +29,4 @@ Authors of OpenSlides in chronological order of first contribution: Raimund Renkert Jochen Saalfeld Fadi Abbud + Gabriel Meyer diff --git a/client/src/app/site/site.component.html b/client/src/app/site/site.component.html index 2871f6459..b8b6f9dc5 100644 --- a/client/src/app/site/site.component.html +++ b/client/src/app/site/site.component.html @@ -29,11 +29,20 @@ {{ getLangName(this.translate.currentLang) }}
- + person Edit profile - + vpn_key Change password diff --git a/client/src/app/site/site.component.ts b/client/src/app/site/site.component.ts index 566f72373..1273c5427 100644 --- a/client/src/app/site/site.component.ts +++ b/client/src/app/site/site.component.ts @@ -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 */