Skip to content

Commit

Permalink
FIX final results downloading
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmartyrk committed Nov 5, 2024
1 parent e1ab3a6 commit 28f6d63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
for.</div>
</!--div-->
</div>
<div class="links_wrap" *ngIf="canUpdate()">
<div class="links_wrap" *ngIf="canDelete()">
<a [href]="vote.downloads.bdocVote"
*ngIf="vote.authType === VOTE_AUTH_TYPES.hard && vote.downloads?.bdocVote" download>
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ export class TopicVoteCastComponent implements OnInit {
return this.TopicService.canUpdate(this.topic);
}

canDelete () {
return this.TopicService.canDelete(this.topic);
}

canVote() {
this.topic.vote = this.vote;
return this.TopicVoteService.canVote(this.topic);
Expand Down

0 comments on commit 28f6d63

Please sign in to comment.