From a10d2c9b3e187cf88f379887b48e3872a35727de Mon Sep 17 00:00:00 2001 From: kevodwyer Date: Tue, 26 Nov 2024 12:32:43 +0000 Subject: [PATCH] Drive - make sure spinner is displayed during cut/move operation --- src/views/Drive.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/Drive.vue b/src/views/Drive.vue index 99f16ae7..004cefae 100644 --- a/src/views/Drive.vue +++ b/src/views/Drive.vue @@ -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);