Skip to content

Commit b160e7f

Browse files
committed
Merge #480: On torrent table layout add an action to navigate to torrent details
0a52dd6 feat: [#452] on torrent table layout add an action to navigate to details (Jose Celano) Pull request description: ![image](https://github.com/torrust/torrust-index-gui/assets/58816/b9656bd8-067a-4860-beac-0836f7cfc450) ACKs for top commit: josecelano: ACK 0a52dd6 Tree-SHA512: 8ac20556446f9311a52bdeaf670be6fd033ca71e25b4a6c233add6949c7cb8fd2751f0b55e5047efdf14ed979fa263db34d2c87df2d2cfa3de3a83c9ce9b73cd
2 parents 1326651 + 0a52dd6 commit b160e7f

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)