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