1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 22:54:11 +00:00

update upload-list zindex (#2784)

This commit is contained in:
杨顺强
2019-01-08 11:53:53 +08:00
committed by Daniel Pan
parent 93a2be4ada
commit ec24a6c20c
3 changed files with 4 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ class FileUploader extends React.Component {
isUploadProgressDialogShow: false,
isUploadRemindDialogShow: false,
currentResumableFile: null,
uploadBitrate: 0
uploadBitrate: '0'
};
this.notifiedFolders = [];
@@ -224,7 +224,7 @@ class FileUploader extends React.Component {
if (this.timestamp) {
let timeDiff = (now - this.timestamp);
if (timeDiff < this.bitrateInterval) {
return this.state.uploadBitrate;
return this.state.uploadBitrate;
}
uploadBitrate = (loaded - this.loaded) * (1000 / timeDiff) * 8;
}

View File

@@ -4,7 +4,7 @@ import { gettext } from '../../utils/constants';
import UploadListItem from './upload-list-item';
const propTypes = {
uploadBitrate: PropTypes.number.isRequired,
uploadBitrate: PropTypes.string.isRequired,
totalProgress: PropTypes.number.isRequired,
uploadFileList: PropTypes.array.isRequired,
onCloseUploadDialog: PropTypes.func.isRequired,