diff --git a/client/coral-configure/components/ConfigureCommentStream.js b/client/coral-configure/components/ConfigureCommentStream.js index 3afd1336c..e621f85f1 100644 --- a/client/coral-configure/components/ConfigureCommentStream.js +++ b/client/coral-configure/components/ConfigureCommentStream.js @@ -7,7 +7,7 @@ import I18n from 'coral-framework/modules/i18n/i18n'; import translations from '../translations.json'; const lang = new I18n(translations); -export default ({handleChange, handleApply, changed, ...props}) => ( +export default ({handleChange, handleApply, changed, updateQuestionBoxContent, ...props}) => (
@@ -48,10 +48,12 @@ export default ({handleChange, handleApply, changed, ...props}) => (
diff --git a/client/coral-configure/containers/ConfigureStreamContainer.js b/client/coral-configure/containers/ConfigureStreamContainer.js index 9092a2673..219e4d99e 100644 --- a/client/coral-configure/containers/ConfigureStreamContainer.js +++ b/client/coral-configure/containers/ConfigureStreamContainer.js @@ -21,6 +21,7 @@ class ConfigureStreamContainer extends Component { this.toggleStatus = this.toggleStatus.bind(this); this.handleChange = this.handleChange.bind(this); this.handleApply = this.handleApply.bind(this); + this.updateQuestionBoxContent = this.updateQuestionBoxContent.bind(this); } handleApply (e) { @@ -58,6 +59,11 @@ class ConfigureStreamContainer extends Component { }); } + updateQuestionBoxContent(e) { + this.props.asset.settings.questionBoxContent = e.target.value; + this.handleChange(e); + } + toggleStatus () { this.props.updateStatus( this.props.asset.closedAt === null ? 'closed' : 'open' @@ -84,6 +90,7 @@ class ConfigureStreamContainer extends Component { changed={this.state.changed} premodLinks={false} premod={premod} + updateQuestionBoxContent={this.updateQuestionBoxContent} questionBoxEnable={questionBoxEnable} questionBoxContent={questionBoxContent} /> diff --git a/client/coral-ui/components/TextField.js b/client/coral-ui/components/TextField.js index 80855dbf1..6c7b30ad1 100644 --- a/client/coral-ui/components/TextField.js +++ b/client/coral-ui/components/TextField.js @@ -4,17 +4,15 @@ import 'material-design-lite'; export default class TextField extends Component { render() { - const {className, onChange, rows, questionBoxContent} = this.props; + const {id, className, onChange, label, rows, value} = this.props; return ( ); }