mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(operation) noFilesCheck: false positive: files selected but current is ".."
This commit is contained in:
parent
bba55adcb9
commit
ba7cefc48b
1 changed files with 2 additions and 2 deletions
|
|
@ -41,8 +41,8 @@ function OperationProto(operation, data) {
|
|||
const processFiles = currify(_processFiles);
|
||||
|
||||
const noFilesCheck = () => {
|
||||
const name = Info.name;
|
||||
const is = name === '..';
|
||||
const {length} = DOM.getActiveFiles();
|
||||
const is = Boolean(!length);
|
||||
|
||||
if (is)
|
||||
return Dialog.alert.noFiles(TITLE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue