aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/comment-page/comment-page.component.html
blob: 2d110d6d3061a45321234d405f0b93c499a18a6a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<app-loading *ngIf="!loaded"></app-loading>

<div id="content" *ngIf="loaded">
	<button class="submit-btn" type="submit" (click)="toPost()">ᐊ Back to post</button>
	<app-comment [paramId]="commentId.toString()"></app-comment>
	<div class="many-buttons" *ngIf="editable">
		<button class="submit-btn" (click)="editComment()">Edit comment</button>
		<button class="submit-btn delete-btn" (click)="deleteComment()">Delete comment</button>
	</div>
	<form  [formGroup]="editCommentFormGroup" (ngSubmit)="editComment()">
		<input type="text" *ngIf="editingComment" placeholder="New comment message" class="input-field" formControlName="newCommentMessage">
		<input type="submit" style="display: none" />
	</form>
<div>