Skip to content

Commit

Permalink
Drive - make sure spinner is displayed during cut/move operation
Browse files Browse the repository at this point in the history
  • Loading branch information
kevodwyer committed Nov 26, 2024
1 parent 2cdb8cd commit a10d2c9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/views/Drive.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2358,9 +2358,10 @@ module.exports = {
target.getLatest(this.context.network).thenApply(updatedTarget => {
parent.getLatest(that.context.network).thenApply(updatedParent => {
fileTreeNode.moveTo(updatedTarget, updatedParent, filePath, that.context, {get_0:() => that.confirmMove()}).thenApply(() => {
that.updateCurrentDirectory(null , () =>
that.reduceMove(index + 1, path, updatedParent, updatedTarget, fileTreeNodes, future)
);
that.updateCurrentDirectory(null , () => {
that.showSpinner = true;
that.reduceMove(index + 1, path, updatedParent, updatedTarget, fileTreeNodes, future);
});
}).exceptionally(function (throwable) {
that.updateCurrentDirectory(null , () => {
that.errorTitle = that.translate("DRIVE.MOVE.ERROR").replace("$NAME", name);
Expand Down

0 comments on commit a10d2c9

Please sign in to comment.