diff options
author | Renard | 2019-10-04 15:41:10 -0300 |
---|---|---|
committer | Renard | 2019-10-04 15:41:10 -0300 |
commit | 109467d1a7c00a904d9baac57fdb03c392ec9a1b (patch) | |
tree | 964bbad430db6fa8fa88a10895fbe503e9ae0a5d /src/Settings.js | |
parent | 27b8ed315b63269794623fa0d5f034928a430c92 (diff) | |
download | bai-client-109467d1a7c00a904d9baac57fdb03c392ec9a1b.tar.gz bai-client-109467d1a7c00a904d9baac57fdb03c392ec9a1b.tar.xz bai-client-109467d1a7c00a904d9baac57fdb03c392ec9a1b.zip |
Setting: embedYoutube
Diffstat (limited to 'src/Settings.js')
-rw-r--r-- | src/Settings.js | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/Settings.js b/src/Settings.js index a0453af..8d187ae 100644 --- a/src/Settings.js +++ b/src/Settings.js @@ -34,7 +34,8 @@ class SettingsModal extends Component { notifyOnThread: true, autoUpdateThreads: true, showAvatars: true, - postPassword: "" + postPassword: "", + embedYoutube: true }; this.handleChange = this.handleChange.bind(this); this.toggleSetting = this.toggleSetting.bind(this); @@ -50,7 +51,8 @@ class SettingsModal extends Component { notifyOnThread: settings.notifyOnThread, autoUpdateThreads: settings.autoUpdateThreads, showAvatars: settings.showAvatars, - postPassword: settings.postPassword + postPassword: settings.postPassword, + embedYoutube: settings.embedYoutube }); } @@ -85,7 +87,8 @@ class SettingsModal extends Component { notifyOnHome, notifyOnThread, postPassword, - showAvatars + showAvatars, + embedYoutube } = this.state; return ( <Modal trigger={this.props.trigger} size="tiny" centered={false}> @@ -113,6 +116,13 @@ class SettingsModal extends Component { Comportamiento </Header> <Checkbox + label="Incrustar videos de Youtube" + checked={embedYoutube} + name="embedYoutube" + onChange={this.toggleSetting} + className="settingCheckbox" + /> + <Checkbox label="Actualizar automáticamente hilos" checked={autoUpdateThreads} name="autoUpdateThreads" |