From 8aa6a60acf0242e9207a24cf6da8ea54ff5e4de0 Mon Sep 17 00:00:00 2001 From: infinite-persistence <64950861+infinite-persistence@users.noreply.github.com> Date: Tue, 12 Jul 2022 13:13:58 +0800 Subject: [PATCH] Fix v1-publish items not removable (#1823) ## Issue https://odysee-workspace.slack.com/archives/C02GSHBKYEM/p1657571082411839?thread_ts=1654909550.197639&cid=C02GSHBKYEM If the user refreshed on a v1 upload, we can't do much but must at least provide a Cancel button for them to remove the entry. ## Change - Restore the cancel button behavior for v1 like it was before. The recent changes on the visibility of the Cancel button should only be applied to v2. - Also fixed missing cancel button on v2 after refresh if the progress reached 100%. --- .../internal/web-upload-item.jsx | 74 ++++++++++--------- 1 file changed, 38 insertions(+), 36 deletions(-) diff --git a/ui/component/webUploadList/internal/web-upload-item.jsx b/ui/component/webUploadList/internal/web-upload-item.jsx index 5490d9d89..678a76cca 100644 --- a/ui/component/webUploadList/internal/web-upload-item.jsx +++ b/ui/component/webUploadList/internal/web-upload-item.jsx @@ -142,42 +142,44 @@ export default function WebUploadItem(props: Props) { function getCancelButton() { if (!locked) { - if (parseInt(progress) === 100) { - return null; - } else if (status === 'notify') { - return ( -