mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-06 01:12:03 +00:00
[eslint] updated eslintrc and improved the code (#4702)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Modal, ModalHeader, ModalBody } from 'reactstrap';
|
||||
import { Modal, ModalHeader, ModalBody } from 'reactstrap';
|
||||
import { gettext, fileServerRoot } from '../../utils/constants';
|
||||
import { seafileAPI } from '../../utils/seafile-api';
|
||||
import { Utils } from '../../utils/utils';
|
||||
@@ -33,7 +33,7 @@ class ZipDownloadDialog extends React.Component {
|
||||
const { token, path, repoID, target } = this.props;
|
||||
let getZipTask;
|
||||
if (token) {
|
||||
getZipTask = target.length ?
|
||||
getZipTask = target.length ?
|
||||
seafileAPI.getShareLinkDirentsZipTask(token, path, target) :
|
||||
seafileAPI.getShareLinkZipTask(token, path);
|
||||
} else {
|
||||
@@ -44,8 +44,8 @@ class ZipDownloadDialog extends React.Component {
|
||||
this.setState({
|
||||
isLoading: false,
|
||||
errorMsg: '',
|
||||
zipToken: zipToken
|
||||
});
|
||||
zipToken: zipToken
|
||||
});
|
||||
this.queryZipProgress();
|
||||
interval = setInterval(this.queryZipProgress, 1000);
|
||||
}).catch((error) => {
|
||||
@@ -53,7 +53,7 @@ class ZipDownloadDialog extends React.Component {
|
||||
this.setState({
|
||||
isLoading: false,
|
||||
errorMsg: errorMsg
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ class ZipDownloadDialog extends React.Component {
|
||||
this.setState({
|
||||
isLoading: false,
|
||||
errorMsg: errorMsg
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user