@ -74,53 +74,56 @@ export default class LocalSettingsPage extends React.PureComponent {
< FormattedMessage id = 'settings.navbar_under' defaultMessage = 'Navbar at the bottom (Mobile only)' / >
< FormattedMessage id = 'settings.navbar_under' defaultMessage = 'Navbar at the bottom (Mobile only)' / >
< / L o c a l S e t t i n g s P a g e I t e m >
< / L o c a l S e t t i n g s P a g e I t e m >
< / s e c t i o n >
< / s e c t i o n >
< section >
< / d i v >
< h2 > < FormattedMessage id = 'settings.compose_box_opts' defaultMessage = 'Compose box options' / > < / h 2 >
) ,
< LocalSettingsPageItem
( { intl , onChange , settings } ) => (
settings = { settings }
< div className = 'glitch local-settings_page compose_box_opts' >
item = { [ 'always_show_spoilers_field' ] }
< section >
id = 'mastodon-settings--always_show_spoilers_field'
< h1 > < FormattedMessage id = 'settings.compose_box_opts' defaultMessage = 'Compose box options' / > < / h 1 >
onChange = { onChange }
< LocalSettingsPageItem
>
settings = { settings }
< FormattedMessage id = 'settings.always_show_spoilers_field' defaultMessage = 'Always enable the Content Warning field' / >
item = { [ 'always_show_spoilers_field' ] }
< / L o c a l S e t t i n g s P a g e I t e m >
id = 'mastodon-settings--always_show_spoilers_field'
< LocalSettingsPageItem
onChange = { onChange }
settings = { settings }
>
item = { [ 'confirm_missing_media_description' ] }
< FormattedMessage id = 'settings.always_show_spoilers_field' defaultMessage = 'Always enable the Content Warning field' / >
id = 'mastodon-settings--confirm_missing_media_description'
< / L o c a l S e t t i n g s P a g e I t e m >
onChange = { onChange }
< LocalSettingsPageItem
>
settings = { settings }
< FormattedMessage id = 'settings.confirm_missing_media_description' defaultMessage = 'Show confirmation dialog before sending toots lacking media descriptions' / >
item = { [ 'confirm_missing_media_description' ] }
< / L o c a l S e t t i n g s P a g e I t e m >
id = 'mastodon-settings--confirm_missing_media_description'
< LocalSettingsPageItem
onChange = { onChange }
settings = { settings }
>
item = { [ 'side_arm' ] }
< FormattedMessage id = 'settings.confirm_missing_media_description' defaultMessage = 'Show confirmation dialog before sending toots lacking media descriptions' / >
id = 'mastodon-settings--side_arm'
< / L o c a l S e t t i n g s P a g e I t e m >
options = { [
< LocalSettingsPageItem
{ value : 'none' , message : intl . formatMessage ( messages . side _arm _none ) } ,
settings = { settings }
{ value : 'direct' , message : intl . formatMessage ( { id : 'privacy.direct.short' } ) } ,
item = { [ 'side_arm' ] }
{ value : 'private' , message : intl . formatMessage ( { id : 'privacy.private.short' } ) } ,
id = 'mastodon-settings--side_arm'
{ value : 'unlisted' , message : intl . formatMessage ( { id : 'privacy.unlisted.short' } ) } ,
options = { [
{ value : 'public' , message : intl . formatMessage ( { id : 'privacy.public.short' } ) } ,
{ value : 'none' , message : intl . formatMessage ( messages . side _arm _none ) } ,
] }
{ value : 'direct' , message : intl . formatMessage ( { id : 'privacy.direct.short' } ) } ,
onChange = { onChange }
{ value : 'private' , message : intl . formatMessage ( { id : 'privacy.private.short' } ) } ,
>
{ value : 'unlisted' , message : intl . formatMessage ( { id : 'privacy.unlisted.short' } ) } ,
< FormattedMessage id = 'settings.side_arm' defaultMessage = 'Secondary toot button:' / >
{ value : 'public' , message : intl . formatMessage ( { id : 'privacy.public.short' } ) } ,
< / L o c a l S e t t i n g s P a g e I t e m >
] }
< LocalSettingsPageItem
onChange = { onChange }
settings = { settings }
>
item = { [ 'side_arm_reply_mode' ] }
< FormattedMessage id = 'settings.side_arm' defaultMessage = 'Secondary toot button:' / >
id = 'mastodon-settings--side_arm_reply_mode'
< / L o c a l S e t t i n g s P a g e I t e m >
options = { [
< LocalSettingsPageItem
{ value : 'keep' , message : intl . formatMessage ( messages . side _arm _keep ) } ,
settings = { settings }
{ value : 'copy' , message : intl . formatMessage ( messages . side _arm _copy ) } ,
item = { [ 'side_arm_reply_mode' ] }
{ value : 'restrict' , message : intl . formatMessage ( messages . side _arm _restrict ) } ,
id = 'mastodon-settings--side_arm_reply_mode'
] }
options = { [
onChange = { onChange }
{ value : 'keep' , message : intl . formatMessage ( messages . side _arm _keep ) } ,
>
{ value : 'copy' , message : intl . formatMessage ( messages . side _arm _copy ) } ,
< FormattedMessage id = 'settings.side_arm_reply_mode' defaultMessage = 'When replying to a toot:' / >
{ value : 'restrict' , message : intl . formatMessage ( messages . side _arm _restrict ) } ,
< / L o c a l S e t t i n g s P a g e I t e m >
] }
< / s e c t i o n >
onChange = { onChange }
>
< FormattedMessage id = 'settings.side_arm_reply_mode' defaultMessage = 'When replying to a toot:' / >
< / L o c a l S e t t i n g s P a g e I t e m >
< / d i v >
< / d i v >
) ,
) ,
( { intl , onChange , settings } ) => (
( { intl , onChange , settings } ) => (