mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-31 14:42:10 +00:00
add close btn for error situation (#3152)
This commit is contained in:
@@ -49,7 +49,7 @@ class UploadProgressDialog extends React.Component {
|
||||
</Fragment>
|
||||
);
|
||||
|
||||
let totalProgress = this.props.totalProgress;
|
||||
let { totalProgress, allFilesUploaded } = this.props;
|
||||
|
||||
return (
|
||||
<div className="uploader-list-view" style={{height: this.state.isMinimized ? '2.25rem' : '20rem'}}>
|
||||
@@ -58,7 +58,7 @@ class UploadProgressDialog extends React.Component {
|
||||
{totalProgress === 100 ? uploadedMessage : uploadingMessage}
|
||||
</div>
|
||||
<div className="uploader-options">
|
||||
{totalProgress === 100 ? uploadedOptions : uploadingOptions}
|
||||
{totalProgress === 100 || allFilesUploaded ? uploadedOptions : uploadingOptions}
|
||||
</div>
|
||||
</div>
|
||||
<div className="uploader-list-content">
|
||||
@@ -71,7 +71,7 @@ class UploadProgressDialog extends React.Component {
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{(!this.props.allFilesUploaded) &&
|
||||
{(!allFilesUploaded) &&
|
||||
<tr><td className="text-right" colSpan={3}><span className="cursor-pointer" onClick={this.onCancelAllUploading}>{gettext('Cancel All')}</span></td></tr>
|
||||
}
|
||||
{
|
||||
|
Reference in New Issue
Block a user