aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/profile/profile.component.html
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-04-08 09:23:56 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-04-08 09:23:56 +0300
commitfee6fed64af358ebe410e7d47ea0c8efccec6d4e (patch)
treef4a1af0bb84ebc503159dcfd095db9f00ba9428d /src/app/components/profile/profile.component.html
parented7f805d265e3162639d329785de0edb8cfc22ff (diff)
downloadDevHive-Angular-fee6fed64af358ebe410e7d47ea0c8efccec6d4e.tar
DevHive-Angular-fee6fed64af358ebe410e7d47ea0c8efccec6d4e.tar.gz
DevHive-Angular-fee6fed64af358ebe410e7d47ea0c8efccec6d4e.zip
Updated profile component to use friend service and updated html to show only add/remove friend button
Diffstat (limited to 'src/app/components/profile/profile.component.html')
-rw-r--r--src/app/components/profile/profile.component.html9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/app/components/profile/profile.component.html b/src/app/components/profile/profile.component.html
index 1a360fc..2443469 100644
--- a/src/app/components/profile/profile.component.html
+++ b/src/app/components/profile/profile.component.html
@@ -14,12 +14,9 @@
<div>
@{{ user.userName }}
</div>
- <form class="flex-row flexible-children width-full font-size-dot7 margin-top-dot4" [formGroup]="updateFrienship" (ngSubmit)="modifyFriend()" *ngIf="!isTheLoggedInUser && isUserLoggedIn">
- <input class="border-faded-slim border-bottom-only margin-right-dot2" type="password" formControlName="password" *ngIf="updatingFriendship" placeholder="Type in password to confirm">
- <button id="add-friend" type="submit" class="border-faded-slim padding-dot1 lighter-hover click-effect border-radius-dot3 width-full">
- {{ updatingFriendship ? 'Confirm' : (friendOfUser ? 'Unfriend' : 'Add friend') }}
- </button>
- </form>
+ <button id="add-friend" class="border-faded-slim padding-dot1 lighter-hover click-effect border-radius-dot3 width-full" (click)="modifyFriend()" *ngIf="!isTheLoggedInUser && isUserLoggedIn">
+ {{ friendOfUser ? 'Unfriend' : 'Add friend' }}
+ </button>
</div>
</section>
<section class="card sec-info-card flex-col width-full">