Skip to content

Commit

Permalink
wait shit only show edit profile button if its our own profile
Browse files Browse the repository at this point in the history
  • Loading branch information
jvyden committed Oct 30, 2023
1 parent affa4a9 commit 0aa3d33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/pages/user/user.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
</div>
</page-header-block>

<page-header-block *ngIf="user">
<page-header-block *ngIf="ownUser">
<div class="flex gap-x-3.5">
<secondary-button [icon]="faCog" text="Edit Profile" routerLink="/settings" class="w-48"></secondary-button>
<secondary-button [icon]="faCog" text="Edit Profile" routerLink="/settings" class="w-48" *ngIf="user?.userId == ownUser.userId"></secondary-button>
<admin-link-button [routerLink]="'/admin/user/' + user?.userId" *ngIf="ownUser?.role == UserRoles.Admin"></admin-link-button>
</div>
</page-header-block>
Expand Down

0 comments on commit 0aa3d33

Please sign in to comment.