mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 16:31:13 +00:00
Download tips (#3242)
* Download out of limit prompt * Canonical format * Remove gettext * delete wrap
This commit is contained in:
@@ -82,6 +82,11 @@ class MutipleDirOperationToolbar extends React.Component {
|
||||
this.zipToken = res.data['zip_token'];
|
||||
this.addDownloadAnimation();
|
||||
this.interval = setInterval(this.addDownloadAnimation, 1000);
|
||||
}).catch((error) => {
|
||||
clearInterval(this.interval);
|
||||
this.setState({isProgressDialogShow: false});
|
||||
let errorMessage = error.response.data.error_msg;
|
||||
toaster.danger(errorMessage);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -110,6 +115,7 @@ class MutipleDirOperationToolbar extends React.Component {
|
||||
|
||||
onCancelDownload = () => {
|
||||
seafileAPI.cancelZipTask(this.zipToken).then(() => {
|
||||
clearInterval(this.interval);
|
||||
this.setState({isProgressDialogShow: false});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user