Adjust vote refresh interval to 1 minute and update vote disclaimer text. Add vote statistics display.
This commit is contained in:
parent
754479eb98
commit
24e28015d3
|
|
@ -32,7 +32,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="voteDisclaimer">
|
<div class="voteDisclaimer">
|
||||||
<h3 style="text-align: center;">Disclaimers & Info</h3>
|
<h3 style="text-align: center;">Disclaimers & Info</h3>
|
||||||
<p style="text-align: center;">You can only store 7 daily crate keys, 1 weekly crate key and 2 quest crate
|
<p style="text-align: center;">You can only store 7 daily crate keys, 2 weekly crate key and 2 quest crate
|
||||||
keys.</p><br>
|
keys.</p><br>
|
||||||
<p style="text-align: center;">Voting within 30 minutes of midnight UTC can cause your votes to glitch. Keys
|
<p style="text-align: center;">Voting within 30 minutes of midnight UTC can cause your votes to glitch. Keys
|
||||||
lost due to voting too close to midnight UTC will not be reimbursed.
|
lost due to voting too close to midnight UTC will not be reimbursed.
|
||||||
|
|
@ -41,6 +41,10 @@
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="voteSection">
|
<section class="voteSection">
|
||||||
|
@if (voteStats) {
|
||||||
|
<p>You have voted {{ voteStats.voteStats.total }} times and {{ voteStats.voteStats.weekly }} this week. You are
|
||||||
|
on a {{ voteStats.voteStreak.dailyStreak }} vote streak!</p>
|
||||||
|
}
|
||||||
<div class="container voteContainer">
|
<div class="container voteContainer">
|
||||||
@for (voteSite of Object.keys(voteSites); track voteSite) {
|
@for (voteSite of Object.keys(voteSites); track voteSite) {
|
||||||
<div class="vote">
|
<div class="vote">
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ export class VoteComponent implements OnInit, OnDestroy {
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.refreshSubscription = interval(300000).subscribe(() => {
|
this.refreshSubscription = interval(60000).subscribe(() => {
|
||||||
this.loadVoteStats();
|
this.loadVoteStats();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user