From ded5b56ec5dbb30d9a9de3505379cbcde53362cb Mon Sep 17 00:00:00 2001 From: liamcottle Date: Wed, 18 Dec 2024 01:26:36 +1300 Subject: [PATCH] remove file transfer from ui when cancelling manually --- src/components/pages/NodeFilesPage.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/pages/NodeFilesPage.vue b/src/components/pages/NodeFilesPage.vue index e3bb3ec..89005b0 100644 --- a/src/components/pages/NodeFilesPage.vue +++ b/src/components/pages/NodeFilesPage.vue @@ -260,6 +260,10 @@ export default { return; } + // remove from ui + FileTransferrer.removeFileTransfer(fileTransfer); + + // tell remove node we are cancelling it try { await FileTransferrer.cancelFileTransfer(fileTransfer); } catch(e) { @@ -274,6 +278,7 @@ export default { return; } + // remove from ui FileTransferrer.removeFileTransfer(fileTransfer); },