Skip to content

Commit

Permalink
ajouts
Browse files Browse the repository at this point in the history
  • Loading branch information
Romuald Caplier committed Apr 10, 2024
1 parent 02ec145 commit ef76e50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ export class RecordUserFeedbacksComponent implements OnInit, OnDestroy {

onNewAnswer(newUserFeedback: UserFeedback) {
this.userFeedBackService.postUserFeedback(newUserFeedback)
// this.cdr.markForCheck()
}

publishNewComment() {
const newFeedback = {
const newFeedback: UserFeedback = {
uuid: undefined,
comment: this.newComment,
parentUuid: null,
date: undefined,
Expand All @@ -105,6 +105,5 @@ export class RecordUserFeedbacksComponent implements OnInit, OnDestroy {

this.userFeedBackService.postUserFeedback(newFeedback)
this.newComment = ''
this.cdr.markForCheck()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export class UserFeedbackItemComponent implements OnInit {
publishNewAnswer() {
this.newAnswerEmitter.emit({
...this.userFeedback,
uuid: undefined,
comment: this.newAnswer,
parentUuid: this.userFeedback.uuid,
authorUserId: Number.parseInt(this.activeUser?.id), // todo: il faut faire quelque chose avec ces userId number alors que tout le reste est en uuid...
Expand Down

0 comments on commit ef76e50

Please sign in to comment.