mirror of
https://github.com/strapi/strapi.git
synced 2025-09-28 01:40:11 +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 = () => {
|
handleDownloadPlugin = (e) => {
|
||||||
this.props.downloadPlugin();
|
this.props.downloadPlugin(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
shouldOpenModal = (props) => {
|
shouldOpenModal = (props) => {
|
||||||
|
@ -34,11 +34,15 @@ export function* pluginDownload() {
|
|||||||
const response = yield call(request, '/admin/plugins/install', opts, true);
|
const response = yield call(request, '/admin/plugins/install', opts, true);
|
||||||
|
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
yield put(downloadPluginSucceeded());
|
|
||||||
|
|
||||||
|
yield new Promise(resolve => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
resolve();
|
||||||
|
}, 8000);
|
||||||
|
});
|
||||||
|
|
||||||
|
yield put(downloadPluginSucceeded());
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
}, 500);
|
|
||||||
}
|
}
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
yield put(downloadPluginError());
|
yield put(downloadPluginError());
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user