Version manager; Touch event override; Mobile sidebar simplified

This commit is contained in:
James Barnsley
2016-12-20 07:56:42 +13:00
parent f1c6479f99
commit 41e4b076ee
14 changed files with 145 additions and 51 deletions

View File

@ -44,6 +44,12 @@ const UIMiddleware = (function(){
next(action)
break
case 'PUSHER_VERSION':
if( action.data.version.upgrade_available )
store.dispatch( uiActions.createNotification( 'Version '+action.data.version.latest+' is available. See settings to upgrade.' ) )
next( action )
break
// This action is irrelevant to us, pass it on to the next middleware
default:
return next(action)