diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-03-22 16:53:08 +0200 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-03-22 16:53:08 +0200 |
| commit | 3e34040b286bb41019d20794f19f18b1a94f77af (patch) | |
| tree | 460260cfe739d65ea6e46a0f71bb7c196fe9e9f0 /src/app | |
| parent | ba8b463e4c4f6ad192dfe7306134669cfec0dafa (diff) | |
| download | DevHive-Angular-3e34040b286bb41019d20794f19f18b1a94f77af.tar DevHive-Angular-3e34040b286bb41019d20794f19f18b1a94f77af.tar.gz DevHive-Angular-3e34040b286bb41019d20794f19f18b1a94f77af.zip | |
Added a button for navigation to admin panel page
Diffstat (limited to 'src/app')
| -rw-r--r-- | src/app/components/profile-settings/profile-settings.component.html | 5 | ||||
| -rw-r--r-- | src/app/components/profile-settings/profile-settings.component.ts | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/app/components/profile-settings/profile-settings.component.html b/src/app/components/profile-settings/profile-settings.component.html index f5989ef..62513ef 100644 --- a/src/app/components/profile-settings/profile-settings.component.html +++ b/src/app/components/profile-settings/profile-settings.component.html @@ -3,6 +3,11 @@ <app-loading *ngIf="!dataArrived"></app-loading> <main class="scroll-standalone under-navbar centered-content flex-col"> + <section class="card full-width" *ngIf="this.isAdminUser"> + <button class="full-width faded-slim-border padding-smaller lighter-hover click-effect border-radius-smaller" (click)="goToAdminPanel()"> + Go to admin panel + </button> + </section> <form class="flex-row card full-width font-size-dot9 margin-top-bot-very-big" [formGroup]="updateProfilePictureFormGroup" (ngSubmit)="updateProfilePicture()"> <img id="profile-picture" class="round-image" [src]="user.profilePictureURL"> <section class="flexible flex-col flex-center-align-items flex-justify-center side-padding-font"> diff --git a/src/app/components/profile-settings/profile-settings.component.ts b/src/app/components/profile-settings/profile-settings.component.ts index 44ea8bb..79519aa 100644 --- a/src/app/components/profile-settings/profile-settings.component.ts +++ b/src/app/components/profile-settings/profile-settings.component.ts @@ -290,7 +290,7 @@ export class ProfileSettingsComponent implements OnInit { this._router.navigate([this._router.url.substring(0, this._router.url.length - 9)]); } - navigateToAdminPanel(): void { + goToAdminPanel(): void { this._router.navigate(['/admin-panel']); } |
