diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-08-22 15:58:57 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-08-29 14:29:36 +0200 |
commit | 171e54eb469ac48830eba2349b3298c004ec19f5 (patch) | |
tree | ac71fec646a6faecd0297d38f2d586101a9a57ae /app/javascript/flavours/glitch/features/local_settings/page/index.js | |
parent | 1b479f08c56f2a4c291ccfffcb8e1217f0ca3686 (diff) |
Add opt-in feature to have the spoilers field always on (fixes #634)
Diffstat (limited to 'app/javascript/flavours/glitch/features/local_settings/page/index.js')
-rw-r--r-- | app/javascript/flavours/glitch/features/local_settings/page/index.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/local_settings/page/index.js b/app/javascript/flavours/glitch/features/local_settings/page/index.js index f88e23c47..ad5c11979 100644 --- a/app/javascript/flavours/glitch/features/local_settings/page/index.js +++ b/app/javascript/flavours/glitch/features/local_settings/page/index.js @@ -77,6 +77,14 @@ export default class LocalSettingsPage extends React.PureComponent { <h2><FormattedMessage id='settings.compose_box_opts' defaultMessage='Compose box options' /></h2> <LocalSettingsPageItem settings={settings} + item={['always_show_spoilers_field']} + id='mastodon-settings--always_show_spoilers_field' + onChange={onChange} + > + <FormattedMessage id='settings.always_show_spoilers_field' defaultMessage='Always enable the Content Warning field' /> + </LocalSettingsPageItem> + <LocalSettingsPageItem + settings={settings} item={['side_arm']} id='mastodon-settings--side_arm' options={[ |