Skip to content

Commit

Permalink
Merge #246: #205 Wrong downloaded torrent file name
Browse files Browse the repository at this point in the history
c097875 build: [#205] downloaded torrent file's name is the title not the name (MMelchor)
5281ceb fix: [#205] downloaded torrent file's name is the title not the name (MMelchor)

Pull request description:

  Fixes #205

ACKs for top commit:
  josecelano:
    ACK c097875

Tree-SHA512: 3f822c9674f38356826b09ae33bcb4088eaac36b93840305982c0a34b49e39c9e180fad554cc6ff919f9bbaa44e429069a914d36980dc2e820106fda9c5f5a3e
  • Loading branch information
josecelano committed Sep 15, 2023
2 parents 1b323dd + c097875 commit 14e36c3
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion components/torrent/TorrentActionCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@

<div class="flex flex-row gap-3">
<template v-if="showDownloadButtons">
<button class="btn btn-primary grow" data-cy="torrent-action-download" @click="downloadTorrent(torrent.info_hash, torrent.title)">
<button class="btn btn-primary grow" data-cy="torrent-action-download" @click="downloadTorrent(torrent.info_hash, torrent.name)">
download torrent
</button>
<button class="w-12 p-0 btn btn-primary">
Expand Down
2 changes: 1 addition & 1 deletion components/torrent/TorrentList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<div class="flex flex-row font-semibold text-center flex-nowrap rounded-2xl">
<div class="flex flex-col justify-center w-10 h-10 text-green-500 shrink-0 rounded-2xl">{{ torrent.seeders }}</div>
<div class="flex flex-col justify-center w-10 h-10 ml-2 text-red-500 shrink-0 rounded-2xl">{{ torrent.leechers }}</div>
<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 rounded-2xl" @click.stop="downloadTorrent(torrent.info_hash, torrent.title)">
<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 rounded-2xl" @click.stop="downloadTorrent(torrent.info_hash, torrent.name)">
<ArrowDownTrayIcon class="w-6" />
</div>
<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 rounded-2xl">
Expand Down
2 changes: 1 addition & 1 deletion components/torrent/TorrentTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</td>
<td>
<div class="flex flex-row items-center justify-center font-semibold flex-nowrap">
<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.title)">
<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)">
<ArrowDownTrayIcon class="w-5" />
</div>
<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">
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"dompurify": "^3.0.5",
"marked": "^7.0.2",
"notiwind-ts": "^2.0.2",
"torrust-index-api-lib": "^0.2.0",
"torrust-index-types-lib": "^0.2.0",
"torrust-index-api-lib": "^1.0.0-alpha.1",
"torrust-index-types-lib": "^1.0.0-alpha.1",
"uuid": "^9.0.0"
}
}

0 comments on commit 14e36c3

Please sign in to comment.