Test process

This commit is contained in:
James Barnsley
2018-11-02 21:44:16 +13:00
parent f7faa059ad
commit 4cb33c7aaa
6 changed files with 16 additions and 25 deletions

View File

@ -54,12 +54,6 @@ export function localScan(){
}
}
export function test(){
return {
type: 'PUSHER_TEST'
}
}
export function getConnections(){
return {
type: 'PUSHER_GET_CONNECTIONS'

View File

@ -146,7 +146,7 @@ const PusherMiddleware = (function(){
store.dispatch(uiActions.createNotification({type: 'info', content: 'Restarting server...'}));
break;
// Upgrade
// Test
case 'test_started':
store.dispatch(uiActions.updateProcess('test', 'Running test'));
break;

View File

@ -122,7 +122,7 @@ class Debug extends React.Component{
<div className="name"></div>
<div className="input">
<a className="button secondary" onClick={e => this.props.uiActions.createNotification({content: 'Test notification'})}>Create notification</a>
<a className="button secondary" onClick={e => this.props.pusherActions.test()}>Run test process</a>
<a className="button secondary" onClick={e => this.props.pusherActions.request('test')}>Run test process</a>
</div>
</div>
</form>