+ {this.state.currentRepoInfo.status === 'read-only' &&
+
+ {gettext('This library has been set to read-only by admin and cannot be updated.')}
+
+ }
+
+
+ {isDirentSelected ? (
+ currentMode === TAGS_MODE || currentMode === METADATA_MODE ? (
+
+ ) : (
+
+ )
) : (
-
- )
- ) : (
-
+ {isDesktop &&
+
+
+
+ }
+
+
+ {this.state.pathExist ?
+
+ :
+
{gettext('Folder does not exist.')}
+ }
+ {!isCustomPermission && this.state.isDirentDetailShow && (
+
)}
- {isDesktop &&
-
-
-
- }
-
-
- {this.state.pathExist ?
-
- :
-
{gettext('Folder does not exist.')}
- }
- {!isCustomPermission && this.state.isDirentDetailShow && (
-
- )}
+ {canUpload && this.state.pathExist && !this.state.isViewFile && ![METADATA_MODE, TAGS_MODE].includes(this.state.currentMode) && (
+
this.uploader = uploader}
+ dragAndDrop={true}
+ path={this.state.path}
+ repoID={this.props.repoID}
+ direntList={this.state.direntList}
+ onFileUploadSuccess={this.onFileUploadSuccess}
+ isCustomPermission={isCustomPermission}
+ />
+ )}
- {canUpload && this.state.pathExist && !this.state.isViewFile && ![METADATA_MODE, TAGS_MODE].includes(this.state.currentMode) && (
-