Move ConferenceUrl.reload into React and redux

This commit is contained in:
Lyubo Marinov
2017-05-31 00:31:00 -05:00
parent 87b488a12b
commit e2afb4c7e7
7 changed files with 66 additions and 55 deletions

View File

@@ -4,7 +4,7 @@ import React, { Component } from 'react';
import { randomInt } from '../../base/util';
import { reconnectNow } from '../functions';
import { _reloadNow } from '../actions';
import ReloadButton from './ReloadButton';
declare var AJS: Object;
@@ -22,6 +22,8 @@ export default class AbstractPageReloadOverlay extends Component {
* @static
*/
static propTypes = {
dispatch: React.PropTypes.func,
/**
* The indicator which determines whether the reload was caused by
* network failure.
@@ -149,7 +151,7 @@ export default class AbstractPageReloadOverlay extends Component {
this._interval = undefined;
}
reconnectNow();
this.props.dispatch(_reloadNow());
} else {
this.setState(prevState => {
return {