Add conditional button styling and logic to indicate vote availability based on last vote timestamp.

This commit is contained in:
2025-10-24 19:50:48 +02:00
parent 00bf7caec2
commit d84d0c7fef
3 changed files with 21 additions and 1 deletions
@@ -49,7 +49,8 @@
<a (click)="clickVote(voteSite)" (contextmenu)="clickVote(voteSite); $event.preventDefault()"
target="_blank" rel="noopener"
[href]="voteSites[voteSite]">
<div class="button-outer">
<div class=button-outer [class.not-available-button-outer]="!canVote(voteSite)"
[class.available-button-outer]="canVote(voteSite)">
<span class="button-inner">{{ getVoteText(voteSite) }}</span>
</div>
</a>