1
0
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:
杨顺强
2019-03-21 11:00:21 +08:00
committed by Daniel Pan
parent 44a29f517e
commit d038b6a8a0

View File

@@ -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>
}
{