mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(operation) progress of copy/move (#155)
This commit is contained in:
parent
407892e995
commit
dd53d178ea
1 changed files with 4 additions and 3 deletions
|
|
@ -289,11 +289,11 @@ function OperationProto(operation, data) {
|
|||
}
|
||||
};
|
||||
|
||||
this.copy = processFiles(copyFn, {
|
||||
this.copy = processFiles({
|
||||
type: 'copy',
|
||||
});
|
||||
|
||||
this.move = processFiles(moveFn, {
|
||||
this.move = processFiles({
|
||||
type: 'move'
|
||||
});
|
||||
|
||||
|
|
@ -394,7 +394,7 @@ function OperationProto(operation, data) {
|
|||
* @param data
|
||||
* @param operation
|
||||
*/
|
||||
function _processFiles(operation, options, data) {
|
||||
function _processFiles(options, data) {
|
||||
let selFiles, files;
|
||||
let panel;
|
||||
let shouldAsk;
|
||||
|
|
@ -436,6 +436,7 @@ function OperationProto(operation, data) {
|
|||
const isCopy = type === 'copy';
|
||||
const option = isCopy ? 'confirmCopy' : 'confirmMove';
|
||||
const title = isCopy ? 'Copy' : 'Rename/Move';
|
||||
const operation = isCopy ? copyFn : moveFn;
|
||||
|
||||
if (shouldAsk && config(option))
|
||||
return message(title, to, names)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue