We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f91d257 commit 1d99c2aCopy full SHA for 1d99c2a
components/torrent/TorrentActionCard.vue
@@ -99,7 +99,7 @@
99
<div />
100
101
<div class="flex flex-row gap-3">
102
- <template v-if="showDownloadButtons">
+ <template v-if="showDownloadButtons()">
103
<button class="btn btn-primary grow" data-cy="torrent-action-download" @click="downloadTorrent(torrent.info_hash, torrent.name)">
104
download torrent
105
</button>
@@ -178,7 +178,7 @@ function hasEditRights (): boolean {
178
return canEditThisTorrent(props.torrent);
179
}
180
181
-function showDownloadButtons () {
+function showDownloadButtons (): boolean {
182
return isUserLoggedIn() || isTrackerPublic();
183
184
0 commit comments