Skip to content

Commit 0a52dd6

Browse files
committed
feat: [#452] on torrent table layout add an action to navigate to details
1 parent 1326651 commit 0a52dd6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

components/torrent/TorrentTable.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
</td>
3434
<td>
3535
<div class="flex flex-row items-center justify-center font-semibold flex-nowrap">
36+
<div class="flex flex-col items-center justify-center w-10 h-10 ml-2 duration-500 cursor-pointer text-base-content/50 hover:text-base-content shrink-0">
37+
<a class="flex items-center" @click.stop="$router.push(`/torrent/${torrent.info_hash}`)">
38+
<EyeIcon class="w-5" />
39+
</a>
40+
</div>
3641
<div class="flex flex-col items-center justify-center w-10 h-10 ml-2 duration-500 cursor-pointer text-base-content/50 hover:text-base-content shrink-0" @click.stop="downloadTorrent(torrent.info_hash, torrent.name)">
3742
<ArrowDownTrayIcon class="w-5" />
3843
</div>
@@ -51,7 +56,7 @@
5156
</template>
5257

5358
<script setup lang="ts">
54-
import { ArrowDownTrayIcon, LinkIcon } from "@heroicons/vue/24/outline";
59+
import { ArrowDownTrayIcon, LinkIcon, EyeIcon } from "@heroicons/vue/24/outline";
5560
import { type PropType, watch } from "vue";
5661
import type { TorrentListing } from "torrust-index-types-lib";
5762
import { fileSize, timeSince, ref, downloadTorrent } from "#imports";

0 commit comments

Comments
 (0)