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

revise isMutipleOperation to isMultipleOperation (#6471)

This commit is contained in:
Aries
2024-08-02 11:41:07 +08:00
committed by GitHub
parent 23fcb5393b
commit 73ac3e7e69
7 changed files with 25 additions and 25 deletions

View File

@@ -10,7 +10,7 @@ const propTypes = {
repoID: PropTypes.string.isRequired,
dirent: PropTypes.object,
selectedDirentList: PropTypes.array,
isMutipleOperation: PropTypes.bool.isRequired,
isMultipleOperation: PropTypes.bool.isRequired,
onItemMove: PropTypes.func,
onItemsMove: PropTypes.func,
onCancelMove: PropTypes.func.isRequired,
@@ -37,7 +37,7 @@ class MoveDirent extends React.Component {
}
handleSubmit = () => {
if (this.props.isMutipleOperation) {
if (this.props.isMultipleOperation) {
this.moveItems();
} else {
this.moveItem();
@@ -153,13 +153,13 @@ class MoveDirent extends React.Component {
render() {
let title = gettext('Move {placeholder} to');
if (!this.props.isMutipleOperation) {
if (!this.props.isMultipleOperation) {
title = title.replace('{placeholder}', '<span class="op-target text-truncate mx-1">' + Utils.HTMLescape(this.props.dirent.name) + '</span>');
} else {
title = gettext('Move selected item(s) to:');
}
let mode = 'current_repo_and_other_repos';
const { dirent, selectedDirentList, isMutipleOperation } = this.props;
const { dirent, selectedDirentList, isMultipleOperation } = this.props;
const movedDirent = dirent ? dirent : selectedDirentList[0];
const { permission } = movedDirent;
const { isCustomPermission } = Utils.getUserPermission(permission);
@@ -169,7 +169,7 @@ class MoveDirent extends React.Component {
return (
<Modal isOpen={true} toggle={this.toggle}>
<ModalHeader toggle={this.toggle}>
{isMutipleOperation ? title : <div dangerouslySetInnerHTML={{ __html: title }} className="d-flex mw-100"></div>}
{isMultipleOperation ? title : <div dangerouslySetInnerHTML={{ __html: title }} className="d-flex mw-100"></div>}
</ModalHeader>
<ModalBody>
<FileChooser