Skip to content

Commit

Permalink
fix typo moving file
Browse files Browse the repository at this point in the history
  • Loading branch information
ianopolous committed Aug 19, 2024
1 parent f220405 commit d14a6c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/views/Drive.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1977,7 +1977,7 @@ module.exports = {
future.complete(false);
};
this.confirm_consumer_func = () => {
future.coplete(true);
future.complete(true);
};
this.showConfirm = true;
return future;
Expand Down Expand Up @@ -2289,7 +2289,7 @@ module.exports = {
let filePath = peergos.client.PathUtils.toPath(path, name);
target.getLatest(this.context.network).thenApply(updatedTarget => {
parent.getLatest(that.context.network).thenApply(updatedParent => {
fileTreeNode.moveTo(updatedTarget, updatedParent, filePath, that.context, that.confirmMove).thenApply(() => {
fileTreeNode.moveTo(updatedTarget, updatedParent, filePath, that.context, {get_0:() => that.confirmMove()}).thenApply(() => {
that.updateCurrentDirectory(null , () =>
that.reduceMove(index + 1, path, updatedParent, updatedTarget, fileTreeNodes, future)
);
Expand Down Expand Up @@ -2472,7 +2472,7 @@ module.exports = {
let name = clipboard.fileTreeNode.getFileProperties().name;
console.log("paste-cut " + name + " -> " + target.getFileProperties().name);
let filePath = peergos.client.PathUtils.toPath(that.path, name);
clipboard.fileTreeNode.moveTo(target, clipboard.parent, filePath, that.context, that.confirmMove)
clipboard.fileTreeNode.moveTo(target, clipboard.parent, filePath, that.context, {get_0:() => that.confirmMove()})
.thenApply(function () {
that.currentDirChanged();
that.onUpdateCompletion.push(function () {
Expand Down Expand Up @@ -2845,7 +2845,7 @@ module.exports = {
var name = clipboard.fileTreeNode.getFileProperties().name;
console.log("drop-cut " + name + " -> "+target.getFileProperties().name);
let filePath = peergos.client.PathUtils.toPath(that.path, name);
clipboard.fileTreeNode.moveTo(target, clipboard.parent, filePath, this.context, this.confirmMove)
clipboard.fileTreeNode.moveTo(target, clipboard.parent, filePath, this.context, {get_0:() => that.confirmMove()})
.thenApply(function() {
that.currentDirChanged();
that.onUpdateCompletion.push(function() {
Expand Down

0 comments on commit d14a6c0

Please sign in to comment.