mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 00:20:07 +00:00
update upload-list zindex (#2784)
This commit is contained in:
@@ -40,7 +40,7 @@ class FileUploader extends React.Component {
|
|||||||
isUploadProgressDialogShow: false,
|
isUploadProgressDialogShow: false,
|
||||||
isUploadRemindDialogShow: false,
|
isUploadRemindDialogShow: false,
|
||||||
currentResumableFile: null,
|
currentResumableFile: null,
|
||||||
uploadBitrate: 0
|
uploadBitrate: '0'
|
||||||
};
|
};
|
||||||
|
|
||||||
this.notifiedFolders = [];
|
this.notifiedFolders = [];
|
||||||
@@ -224,7 +224,7 @@ class FileUploader extends React.Component {
|
|||||||
if (this.timestamp) {
|
if (this.timestamp) {
|
||||||
let timeDiff = (now - this.timestamp);
|
let timeDiff = (now - this.timestamp);
|
||||||
if (timeDiff < this.bitrateInterval) {
|
if (timeDiff < this.bitrateInterval) {
|
||||||
return this.state.uploadBitrate;
|
return this.state.uploadBitrate;
|
||||||
}
|
}
|
||||||
uploadBitrate = (loaded - this.loaded) * (1000 / timeDiff) * 8;
|
uploadBitrate = (loaded - this.loaded) * (1000 / timeDiff) * 8;
|
||||||
}
|
}
|
||||||
|
@@ -4,7 +4,7 @@ import { gettext } from '../../utils/constants';
|
|||||||
import UploadListItem from './upload-list-item';
|
import UploadListItem from './upload-list-item';
|
||||||
|
|
||||||
const propTypes = {
|
const propTypes = {
|
||||||
uploadBitrate: PropTypes.number.isRequired,
|
uploadBitrate: PropTypes.string.isRequired,
|
||||||
totalProgress: PropTypes.number.isRequired,
|
totalProgress: PropTypes.number.isRequired,
|
||||||
uploadFileList: PropTypes.array.isRequired,
|
uploadFileList: PropTypes.array.isRequired,
|
||||||
onCloseUploadDialog: PropTypes.func.isRequired,
|
onCloseUploadDialog: PropTypes.func.isRequired,
|
||||||
|
@@ -20,6 +20,7 @@
|
|||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
box-shadow: 0 0 6px #ddd;
|
box-shadow: 0 0 6px #ddd;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
z-index: 1050;
|
||||||
}
|
}
|
||||||
|
|
||||||
.uploader-list-header {
|
.uploader-list-header {
|
||||||
|
Reference in New Issue
Block a user