src/app/issue-detail/comment/comment.component.ts
This component displays an issue comment. The comment will be subscribed to lazily (see DataNode).
selector | app-comment |
styleUrls | ./comment.component.scss |
templateUrl | ./comment.component.html |
Properties |
|
Methods |
|
Inputs |
constructor(dataService: DataService, dialog: MatDialog, notify: UserNotifyService)
|
||||||||||||
Parameters :
|
commentId | |
Type : NodeId
|
|
The comment or issue ID. If this is an issue ID, set to true. |
isIssueBody | |
Type : boolean
|
|
If true, this comment component is actually editing an issue's body. |
issueId | |
Type : NodeId
|
|
The issue this comment belongs to. |
Public deleteComment |
deleteComment()
|
Deletes the current comment.
Returns :
void
|
Public editComment | ||||||||
editComment(body: string)
|
||||||||
Edits the description of the current comment.
Parameters :
Returns :
void
|
Public editBody |
Default value : false
|
True if the comment body is being edited. |
Public savingBody |
Default value : false
|
True if the comment body is being saved. |
Public timeFormatter |
Default value : new TimeFormatter()
|
Used to format time. |
./comment.component.scss