GitLab steht aufgrund wichtiger Wartungsarbeiten am Montag, den 8. März, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit d0944f94 authored by Klaus-Dieter Quibeldey-Cirkel's avatar Klaus-Dieter Quibeldey-Cirkel

Merge branch...

Merge branch '418-questions-with-an-answer-are-displayed-distorted-in-the-roles-of-student-and-moderator' into 'master'

resolve undefined id for comment component

Closes #418

See merge request !415
parents 5cfa6ed4 d0501fc2
Pipeline #46979 passed with stages
in 9 minutes and 19 seconds
......@@ -53,7 +53,8 @@
</mat-icon>
</button>
<button mat-icon-button
*ngIf="(isCreator || comment.creatorId === user.id) && !comment.favorite && !inAnswerView" (click)="openDeleteCommentDialog()"
*ngIf="(isCreator || (comment.creatorId && user && comment.creatorId === user.id)) && !comment.favorite && !inAnswerView"
(click)="openDeleteCommentDialog()"
tabindex="0" attr.aria-labelledby="comment_delete{{ comment.id }}">
<mat-icon class="not-marked" matTooltip="{{ 'comment-page.delete' | translate }}">delete
</mat-icon>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment