fix downvote

This commit is contained in:
_Bastler 2021-10-05 08:49:30 +02:00
parent 7851bd691e
commit 8cc7978954

View File

@ -11,12 +11,12 @@
<mat-icon inline="true">thumb_up</mat-icon>
</a>
<span *ngIf="entry.metadata && entry.metadata.vote">&nbsp;</span>
<a *ngIf="entry.metadata && entry.metadata.unvote" href="javascript:" (click)="voteDown(entry.id)"
<a *ngIf="entry.metadata && entry.metadata.downvote" href="javascript:" (click)="voteDown(entry.id)"
matTooltip="{{'vote.down' | i18n}}">
<mat-icon inline="true">thumb_down</mat-icon>
</a>
<span *ngIf="entry.metadata && entry.metadata.downvote">&nbsp;</span>
<span class="voted" *ngIf="entry.metadata && entry.metadata.downvote">
<span class="voted" *ngIf="entry.metadata && entry.metadata.unvote">
<mat-icon *ngIf="entry.metadata && entry.metadata.upvoted" inline="true">thumb_up</mat-icon>
<mat-icon *ngIf="entry.metadata && entry.metadata.downvoted" inline="true">thumb_down</mat-icon>
<span>&nbsp;</span>