mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
Merge branch 'master' of github.com:strapi/strapi into fix/deploy
This commit is contained in:
commit
adb11a0b8b
@ -63,8 +63,8 @@ class PluginCard extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
handleDownloadPlugin = () => {
|
||||
this.props.downloadPlugin();
|
||||
handleDownloadPlugin = (e) => {
|
||||
this.props.downloadPlugin(e);
|
||||
}
|
||||
|
||||
shouldOpenModal = (props) => {
|
||||
|
@ -34,11 +34,15 @@ export function* pluginDownload() {
|
||||
const response = yield call(request, '/admin/plugins/install', opts, true);
|
||||
|
||||
if (response.ok) {
|
||||
yield put(downloadPluginSucceeded());
|
||||
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
}, 500);
|
||||
yield new Promise(resolve => {
|
||||
setTimeout(() => {
|
||||
resolve();
|
||||
}, 8000);
|
||||
});
|
||||
|
||||
yield put(downloadPluginSucceeded());
|
||||
window.location.reload();
|
||||
}
|
||||
} catch(err) {
|
||||
yield put(downloadPluginError());
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user