Changeset View
Changeset View
Standalone View
Standalone View
src/app/postView/postView.component.ts
Show First 20 Lines • Show All 169 Lines • ▼ Show 20 Lines | export class PostViewComponent implements OnInit, OnDestroy { | ||||
gotoUser(user: string) { | gotoUser(user: string) { | ||||
this.routeService.addNextRoute(this.router.url); | this.routeService.addNextRoute(this.router.url); | ||||
this.router.navigateByUrl('/user/' + user); | this.router.navigateByUrl('/user/' + user); | ||||
} | } | ||||
notificationIndication(commentID: number) { | notificationIndication(commentID: number) { | ||||
if (this.parsedCommentArray.indexOf(commentID.toString()) !== -1) { | if (this.parsedCommentArray.indexOf(commentID.toString()) !== -1) { | ||||
return '2px solid #ed763e'; | return '2px solid #EA6C40'; | ||||
} else { | } else { | ||||
return ''; | return ''; | ||||
} | } | ||||
} | } | ||||
openCommentDeleteDialog(c: Comment) { | openCommentDeleteDialog(c: Comment) { | ||||
const dialogRef = this.dialog.open(ConfirmDeletionDialogComponent); | const dialogRef = this.dialog.open(ConfirmDeletionDialogComponent); | ||||
dialogRef.afterClosed() | dialogRef.afterClosed() | ||||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |