Merge branch 'master' of github.com:strapi/strapi into fix/deploy

This commit is contained in:
Aurelsicoko 2018-01-16 16:02:02 +01:00
commit adb11a0b8b
3 changed files with 11 additions and 7 deletions

View File

@ -63,8 +63,8 @@ class PluginCard extends React.Component {
}
}
handleDownloadPlugin = () => {
this.props.downloadPlugin();
handleDownloadPlugin = (e) => {
this.props.downloadPlugin(e);
}
shouldOpenModal = (props) => {

View File

@ -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