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:
@@ -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();
|
||||
}
|
||||
|
||||
|
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user