mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-10 03:11:07 +00:00
change encrypted repo rotate image (#6969)
This commit is contained in:
@@ -833,6 +833,7 @@ class DirentGridView extends React.Component {
|
||||
if (this.props.isDirentListLoading) {
|
||||
return (<Loading />);
|
||||
}
|
||||
const repoEncrypted = this.props.currentRepoInfo.encrypted;
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
@@ -861,7 +862,7 @@ class DirentGridView extends React.Component {
|
||||
onGridItemMouseDown={this.onGridItemMouseDown}
|
||||
onGridItemClick={this.onGridItemClick}
|
||||
selectedDirentList={selectedDirentList}
|
||||
repoEncrypted={this.props.currentRepoInfo.encrypted}
|
||||
repoEncrypted={repoEncrypted}
|
||||
/>
|
||||
);
|
||||
})}
|
||||
@@ -919,7 +920,7 @@ class DirentGridView extends React.Component {
|
||||
<MoveDirentDialog
|
||||
path={this.props.path}
|
||||
repoID={this.props.repoID}
|
||||
repoEncrypted={this.props.currentRepoInfo.encrypted}
|
||||
repoEncrypted={repoEncrypted}
|
||||
isMultipleOperation={this.state.isMultipleOperation}
|
||||
selectedDirentList={selectedDirentList}
|
||||
onItemMove={this.props.onItemMove}
|
||||
@@ -942,7 +943,7 @@ class DirentGridView extends React.Component {
|
||||
<CopyDirentDialog
|
||||
path={this.props.path}
|
||||
repoID={this.props.repoID}
|
||||
repoEncrypted={this.props.currentRepoInfo.encrypted}
|
||||
repoEncrypted={repoEncrypted}
|
||||
isMultipleOperation={this.state.isMultipleOperation}
|
||||
selectedDirentList={selectedDirentList}
|
||||
onItemsCopy={this.props.onItemsCopy}
|
||||
@@ -1005,6 +1006,7 @@ class DirentGridView extends React.Component {
|
||||
moveToNextImage={this.moveToNextImage}
|
||||
onDeleteImage={this.deleteImage}
|
||||
onRotateImage={this.rotateImage}
|
||||
enableRotate={!repoEncrypted}
|
||||
/>
|
||||
</ModalPortal>
|
||||
)}
|
||||
|
Reference in New Issue
Block a user