1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 07:55:36 +00:00

add copy and move effect (#3142)

* add copy and move effect

* Add copy and move effect

* Add move and copy effects

* Add move and copy effects
This commit is contained in:
zxj96
2019-03-20 11:04:36 +08:00
committed by Daniel Pan
parent 882e608d4b
commit b9aca2aba9
6 changed files with 71 additions and 12 deletions

View File

@@ -14,7 +14,7 @@ const propTypes = {
onItemCopy: PropTypes.func,
onItemsCopy: PropTypes.func,
onCancelCopy: PropTypes.func.isRequired,
repoEncrypted: PropTypes.object.isRequired,
repoEncrypted: PropTypes.bool.isRequired,
};
// need dirent file Path
@@ -126,7 +126,7 @@ class CopyDirent extends React.Component {
return;
}
this.props.onItemCopy(repo, this.props.dirent, selectedPath);
this.props.onItemCopy(repo, this.props.dirent, selectedPath, this.props.path);
this.toggle();
}

View File

@@ -14,7 +14,7 @@ const propTypes = {
onItemMove: PropTypes.func,
onItemsMove: PropTypes.func,
onCancelMove: PropTypes.func.isRequired,
repoEncrypted: PropTypes.object.isRequired,
repoEncrypted: PropTypes.bool.isRequired,
};
// need dirent file Path
@@ -126,7 +126,7 @@ class MoveDirent extends React.Component {
return;
}
this.props.onItemMove(repo, this.props.dirent, selectedPath);
this.props.onItemMove(repo, this.props.dirent, selectedPath, this.props.path);
this.toggle();
}