Prepare for eslint 4
This commit is contained in:
parent
c8c44d62ed
commit
25ec8ac6a7
|
@ -304,7 +304,7 @@ var Chat = {
|
||||||
|
|
||||||
$('#chatconversation').append(
|
$('#chatconversation').append(
|
||||||
'<div class="errorMessage"><b>Error: </b>' + 'Your message' +
|
'<div class="errorMessage"><b>Error: </b>' + 'Your message' +
|
||||||
(originalText? (' \"'+ originalText + '\"') : "") +
|
(originalText? (` "${originalText}"`) : "") +
|
||||||
' was not sent.' +
|
' was not sent.' +
|
||||||
(errorMessage? (' Reason: ' + errorMessage) : '') + '</div>');
|
(errorMessage? (' Reason: ' + errorMessage) : '') + '</div>');
|
||||||
$('#chatconversation').animate(
|
$('#chatconversation').animate(
|
||||||
|
|
|
@ -35,7 +35,7 @@ MiddlewareRegistry.register(store => next => action => {
|
||||||
* @returns {Object} The new state that is the result of the reduction of the
|
* @returns {Object} The new state that is the result of the reduction of the
|
||||||
* specified action.
|
* specified action.
|
||||||
*/
|
*/
|
||||||
function _setConfig({ dispatch, getState }, next, action) {
|
function _setConfig({ getState }, next, action) {
|
||||||
const oldValue = getState()['features/base/config'];
|
const oldValue = getState()['features/base/config'];
|
||||||
const result = next(action);
|
const result = next(action);
|
||||||
const newValue = getState()['features/base/config'];
|
const newValue = getState()['features/base/config'];
|
||||||
|
|
|
@ -76,7 +76,7 @@ class RouteRegistry {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-disable no-undef */
|
/* eslint-disable no-undef */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns registered route by name if any.
|
* Returns registered route by name if any.
|
||||||
|
@ -87,7 +87,7 @@ class RouteRegistry {
|
||||||
*/
|
*/
|
||||||
getRouteByComponent(component: Class<Component<*>>) {
|
getRouteByComponent(component: Class<Component<*>>) {
|
||||||
|
|
||||||
/* eslint-enable no-undef */
|
/* eslint-enable no-undef */
|
||||||
|
|
||||||
const route = this._elements.find(r => r.component === component);
|
const route = this._elements.find(r => r.component === component);
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,8 @@ MiddlewareRegistry.register(store => next => action => {
|
||||||
|
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
case UPDATE_DIAL_IN_NUMBERS_FAILED:
|
case UPDATE_DIAL_IN_NUMBERS_FAILED:
|
||||||
logger.error('Error encountered while fetching dial-in numbers:',
|
logger.error(
|
||||||
|
'Error encountered while fetching dial-in numbers:',
|
||||||
action.error);
|
action.error);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,8 +55,7 @@ MiddlewareRegistry.register(store => next => action => {
|
||||||
AudioMode.setMode(mode)
|
AudioMode.setMode(mode)
|
||||||
.catch(err =>
|
.catch(err =>
|
||||||
console.error(
|
console.error(
|
||||||
`Failed to set audio mode ${String(mode)}: `
|
`Failed to set audio mode ${String(mode)}: ${err}`));
|
||||||
+ `${err}`));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -130,8 +130,7 @@ class ReloadTimer extends Component {
|
||||||
componentDidUpdate() {
|
componentDidUpdate() {
|
||||||
AJS.progressBars.update(
|
AJS.progressBars.update(
|
||||||
'#reloadProgressBar',
|
'#reloadProgressBar',
|
||||||
Math.abs(this.state.current - this.props.start)
|
Math.abs(this.state.current - this.props.start) / this.state.time);
|
||||||
/ this.state.time);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -74,7 +74,8 @@ class RemoteControlAuthorizationDialog extends Component {
|
||||||
titleKey = 'dialog.remoteControlTitle'
|
titleKey = 'dialog.remoteControlTitle'
|
||||||
width = 'small'>
|
width = 'small'>
|
||||||
{
|
{
|
||||||
this.props.t('dialog.remoteControlRequestMessage',
|
this.props.t(
|
||||||
|
'dialog.remoteControlRequestMessage',
|
||||||
{ user: this.props._displayName })
|
{ user: this.props._displayName })
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
@ -153,8 +154,10 @@ class RemoteControlAuthorizationDialog extends Component {
|
||||||
*/
|
*/
|
||||||
function _mapStateToProps(state, ownProps) {
|
function _mapStateToProps(state, ownProps) {
|
||||||
const { _displayName, participantId } = ownProps;
|
const { _displayName, participantId } = ownProps;
|
||||||
const participant = getParticipantById(
|
const participant
|
||||||
state['features/base/participants'], participantId);
|
= getParticipantById(
|
||||||
|
state['features/base/participants'],
|
||||||
|
participantId);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
_displayName: participant ? participant.name : _displayName
|
_displayName: participant ? participant.name : _displayName
|
||||||
|
|
Loading…
Reference in New Issue