Moves feedback button as a component.

When callstats is not configured hide the button.
pull/1283/head
damencho 9 years ago committed by Lyubomir Marinov
parent 7fa17322a1
commit 0765c60d77
  1. 7
      react/features/conference/components/Conference.web.js
  2. 28
      react/features/feedback/components/FeedbackButton.web.js
  3. 1
      react/features/feedback/components/index.js
  4. 1
      react/features/feedback/index.js

@ -5,6 +5,7 @@ import { connect as reactReduxConnect } from 'react-redux';
import { connect, disconnect } from '../../base/connection';
import { Watermarks } from '../../base/react';
import { FeedbackButton } from '../../feedback';
/**
* For legacy reasons, inline style for display none.
@ -83,9 +84,9 @@ class Conference extends Component {
className = 'toolbar'
id = 'extendedToolbar'>
<div id = 'extendedToolbarButtons' />
<a
className = 'button icon-feedback'
id = 'feedbackButton' />
<FeedbackButton />
<div id = 'sideToolbarContainer' />
</div>
<div id = 'videospace'>

@ -0,0 +1,28 @@
/* global config */
import React, { Component } from 'react';
/**
* A Web Component which renders feedback button.
*/
export class FeedbackButton extends Component {
/**
* Implements React's {@link Component#render()}.
*
* @inheritdoc
* @returns {ReactElement}
*/
render() {
// if there is no callstats configured skip rendering
if (!config.callStatsID) {
return null;
}
return (
<a
className = 'button icon-feedback'
id = 'feedbackButton' />
);
}
}

@ -0,0 +1 @@
export * from './FeedbackButton';

@ -0,0 +1 @@
export * from './components';
Loading…
Cancel
Save