From 0f66834eb06ff1b638f435bdee445eecfcc7b0a1 Mon Sep 17 00:00:00 2001 From: Jose Celano Date: Fri, 23 Jun 2023 14:10:22 +0100 Subject: [PATCH] fix: [#97] redirect to torrent details after upload The behavior was broken becuase the navigation (frontend router) used the torrent id instead of the info-hash. But the API was not returning the info-hash after uploading a new torrent file. The API was changed to return the info-hash too. And the API dependency was updated. --- .../authentication/AuthenticationForm.vue | 18 ++--- components/torrent/TorrentActionCard.vue | 70 +++++++++---------- components/torrent/TorrentDescriptionTab.vue | 14 ++-- components/torrent/TorrentFilesTab.vue | 12 ++-- components/torrent/TorrentList.vue | 42 +++++------ .../torrent/TorrentListTorrentDetails.vue | 10 +-- components/torrent/TorrentTable.vue | 20 +++--- components/torrent/TorrentTrackersTab.vue | 12 ++-- composables/helpers.ts | 4 +- composables/states.ts | 4 +- package-lock.json | 33 +++++---- package.json | 4 +- pages/admin/settings/authentication.vue | 6 +- pages/torrent/[infoHash].vue | 28 ++++---- pages/torrent/edit/[infoHash].vue | 12 ++-- pages/torrents.vue | 10 +-- pages/upload.vue | 13 ++-- 17 files changed, 155 insertions(+), 157 deletions(-) diff --git a/components/authentication/AuthenticationForm.vue b/components/authentication/AuthenticationForm.vue index 060f4f2b..f41f83c9 100644 --- a/components/authentication/AuthenticationForm.vue +++ b/components/authentication/AuthenticationForm.vue @@ -1,7 +1,7 @@