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