aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-03-21 16:34:08 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-03-21 16:34:08 +0200
commit0f945d891a565ec1ed4aac8e4feb0b0b41746567 (patch)
treedee44eb616d49344c49184be9c77d3077afa0bec /src
parent0a16705c40735e81afa1f3d58c7cba224f46dbcd (diff)
downloadDevHive-Angular-0f945d891a565ec1ed4aac8e4feb0b0b41746567.tar
DevHive-Angular-0f945d891a565ec1ed4aac8e4feb0b0b41746567.tar.gz
DevHive-Angular-0f945d891a565ec1ed4aac8e4feb0b0b41746567.zip
Fixed post deletion and enditing buttons being shown on other people's posts
Diffstat (limited to 'src')
-rw-r--r--src/app/components/post/post.component.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/components/post/post.component.html b/src/app/components/post/post.component.html
index 1831c5e..db0a7c4 100644
--- a/src/app/components/post/post.component.html
+++ b/src/app/components/post/post.component.html
@@ -58,7 +58,7 @@
</summary>
</section>
<section class="flex-row justify-children-center flex-center-align-children">
- <button class="padding-small lighter-hover click-effect border-radius-smaller" (click)="toggleEditing()">
+ <button class="padding-small lighter-hover click-effect border-radius-smaller" *ngIf="loggedInAuthor" (click)="toggleEditing()">
<img src="/assets/icons/tabler-icon-edit.svg">
</button>
<button class="flexible padding-small lighter-hover click-effect border-radius-smaller" (click)="goToPostPage()">
@@ -69,7 +69,7 @@
<img src="/assets/icons/tabler-icon-link.svg">
&nbsp;Share
</button>
- <button class="padding-small lighter-hover click-effect border-radius-smaller" (click)="deletePost()">
+ <button class="padding-small lighter-hover click-effect border-radius-smaller" *ngIf="loggedInAuthor" (click)="deletePost()">
<img src="/assets/icons/tabler-icon-trash.svg">
</button>
</section>