Skip to content

Commit

Permalink
remove file transfer from ui when cancelling manually
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcottle committed Dec 17, 2024
1 parent 9a3db76 commit ded5b56
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/pages/NodeFilesPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -274,6 +278,7 @@ export default {
return;
}
// remove from ui
FileTransferrer.removeFileTransfer(fileTransfer);
},
Expand Down

0 comments on commit ded5b56

Please sign in to comment.