Test process
This commit is contained in:
@ -54,12 +54,6 @@ export function localScan(){
|
||||
}
|
||||
}
|
||||
|
||||
export function test(){
|
||||
return {
|
||||
type: 'PUSHER_TEST'
|
||||
}
|
||||
}
|
||||
|
||||
export function getConnections(){
|
||||
return {
|
||||
type: 'PUSHER_GET_CONNECTIONS'
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user