1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 00:43:53 +00:00

fix: fileuploader display (#6761)

Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
杨国璇
2024-09-12 14:27:00 +08:00
committed by GitHub
parent 5bebec6aee
commit 76b3c5627c
4 changed files with 1 additions and 5 deletions

View File

@@ -15,7 +15,6 @@ const propTypes = {
onPathClick: PropTypes.func.isRequired,
onTabNavClick: PropTypes.func,
pathPrefix: PropTypes.array,
isViewFile: PropTypes.bool,
fileTags: PropTypes.array.isRequired,
toggleTreePanel: PropTypes.func.isRequired,
repoEncrypted: PropTypes.bool.isRequired,

View File

@@ -12,7 +12,6 @@ const propTypes = {
onPathClick: PropTypes.func.isRequired,
onTabNavClick: PropTypes.func,
pathPrefix: PropTypes.array,
isViewFile: PropTypes.bool,
fileTags: PropTypes.array.isRequired,
toggleTreePanel: PropTypes.func.isRequired,
direntList: PropTypes.array,
@@ -64,7 +63,6 @@ class CurDirPath extends React.Component {
userPerm={this.props.userPerm}
onPathClick={this.props.onPathClick}
onTabNavClick={this.props.onTabNavClick}
isViewFile={this.props.isViewFile}
fileTags={this.props.fileTags}
toggleTreePanel={this.props.toggleTreePanel}
enableDirPrivateShare={this.props.enableDirPrivateShare}

View File

@@ -231,7 +231,6 @@ class LibContentContainer extends React.Component {
pathPrefix={this.props.pathPrefix}
currentPath={this.props.path}
userPerm={this.props.userPerm}
isViewFile={this.props.isViewFile}
onTabNavClick={this.props.onTabNavClick}
onPathClick={this.onPathClick}
fileTags={this.props.fileTags}

View File

@@ -2318,7 +2318,7 @@ class LibContentView extends React.Component {
getMarkDownFileName={this.getMarkDownFileName}
openMarkdownFile={this.openMarkdownFile}
/>
{canUpload && this.state.pathExist && !this.state.isViewFile && (
{canUpload && this.state.pathExist && !this.state.isViewFile && this.state.currentMode !== METADATA_MODE && (
<FileUploader
ref={uploader => this.uploader = uploader}
dragAndDrop={true}