Skip to content

Commit

Permalink
Hide the "Add friend" from self-profile
Browse files Browse the repository at this point in the history
  • Loading branch information
sondreb committed Nov 4, 2024
1 parent 4a2ebf1 commit 7c54a80
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/src/app/profile/profile.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ <h1>
{{ data().profile.name }}
@if(data().profile.title) {
<span>({{ data().profile.title }})</span>
} @if (layout.tiny()) { @if (!data().friend) {

@if (data().did !== this.identity.did) { @if (layout.tiny()) { @if (!data().friend) {
<button class="icon-button" mat-icon-button (click)="addFriend(data().did)">
<mat-icon>person_add</mat-icon>
</button>
Expand All @@ -33,7 +34,7 @@ <h1>
<mat-icon>chat_bubble</mat-icon>
Message
</button>
} }
} } } }

<button mat-icon-button [matMenuTriggerFor]="menuProfile">
<mat-icon>more_vert</mat-icon>
Expand All @@ -56,7 +57,7 @@ <h1>
@if (data().did !== this.identity.did) { @if (!data().friend) {
<button mat-menu-item (click)="addFriend(data().did)">
<mat-icon>person_add</mat-icon>
<span>Add Friend</span>
<span>Add friend</span>
</button>
} @else {
<button mat-menu-item [routerLink]="['/app', 'chat', data().did]">
Expand Down

0 comments on commit 7c54a80

Please sign in to comment.