Locale for all categories; Upgrader

This commit is contained in:
James Barnsley
2017-01-10 14:12:54 +13:00
parent db8c0d657a
commit 15a9da0369
6 changed files with 16 additions and 11 deletions

View File

@ -126,11 +126,16 @@ const PusherMiddleware = (function(){
return next(action);
break;
case 'UPGRADING':
case 'START_UPGRADE':
request({ action: 'perform_upgrade' })
.then(
response => {
store.dispatch({ type: 'UPGRADE', data: response.data })
response => {
if (response.data.version.upgrade_successful){
uiActions.createNotification('Upgrade complete')
}else{
uiActions.createNotification('Upgrade failed, manual upgrade required')
}
store.dispatch({ type: 'VERSION', data: response.data })
}
)
return next(action);