aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/comment-page/comment-page.component.html
blob: d59c956d1e06f1d4816d296255707dffee3c41b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<app-loading *ngIf="!loaded"></app-loading>

<main id="content" *ngIf="loaded">
	<nav>
		<button class="submit-btn" type="submit" (click)="toPost()">
			ᐊ Back to post
		</button>
	</nav>
	<app-comment [paramId]="commentId.toString()"></app-comment>
	<nav 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>
	</nav>
	<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>
	<app-footer></app-footer>
</main>