diff --git a/src/app/files/fileManager.js b/src/app/files/fileManager.js index 6af34bb86b..728ebe8193 100644 --- a/src/app/files/fileManager.js +++ b/src/app/files/fileManager.js @@ -138,43 +138,62 @@ class FileManager extends FileSystemApi { if (this.currentRequest) { let reject = false let savedAsCopy = false + let accept = false let actions = (toaster) => { - return yo`
- - -
` + return yo` +
+ + + +
+ ` } await toaster(yo`
- ${this.currentRequest.from} is modyfing ${path} + ${this.currentRequest.from} is trying to modify ${path} -
`, actions, { time: 4000 }) + + `, actions, { time: 4000 }) if (reject) throw new Error(`set file operation on ${path} aborted by user.`) - if (savedAsCopy) return + if (accept || savedAsCopy) return + else this._setFileInternal(path, content) } - this._setFileInternal(path, content) } _setFileInternal (path, content) {