|
|
@ -292,31 +292,29 @@ export default class ComposerOptions extends React.PureComponent {
|
|
|
|
onClick={onToggleSpoiler}
|
|
|
|
onClick={onToggleSpoiler}
|
|
|
|
title={intl.formatMessage(messages.spoiler)}
|
|
|
|
title={intl.formatMessage(messages.spoiler)}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
{advancedOptions ? (
|
|
|
|
<Dropdown
|
|
|
|
<Dropdown
|
|
|
|
active={advancedOptions && advancedOptions.some(value => !!value)}
|
|
|
|
active={advancedOptions.some(value => !!value)}
|
|
|
|
disabled={disabled}
|
|
|
|
disabled={disabled}
|
|
|
|
icon='ellipsis-h'
|
|
|
|
icon='ellipsis-h'
|
|
|
|
items={advancedOptions ? [
|
|
|
|
items={[
|
|
|
|
{
|
|
|
|
{
|
|
|
|
meta: <FormattedMessage {...messages.local_only_long} />,
|
|
|
|
meta: <FormattedMessage {...messages.local_only_long} />,
|
|
|
|
name: 'do_not_federate',
|
|
|
|
name: 'do_not_federate',
|
|
|
|
on: advancedOptions.get('do_not_federate'),
|
|
|
|
on: advancedOptions.get('do_not_federate'),
|
|
|
|
text: <FormattedMessage {...messages.local_only_short} />,
|
|
|
|
text: <FormattedMessage {...messages.local_only_short} />,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
meta: <FormattedMessage {...messages.threaded_mode_long} />,
|
|
|
|
meta: <FormattedMessage {...messages.threaded_mode_long} />,
|
|
|
|
name: 'threaded_mode',
|
|
|
|
name: 'threaded_mode',
|
|
|
|
on: advancedOptions.get('threaded_mode'),
|
|
|
|
on: advancedOptions.get('threaded_mode'),
|
|
|
|
text: <FormattedMessage {...messages.threaded_mode_short} />,
|
|
|
|
text: <FormattedMessage {...messages.threaded_mode_short} />,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
] : null}
|
|
|
|
]}
|
|
|
|
onChange={onChangeAdvancedOption}
|
|
|
|
onChange={onChangeAdvancedOption}
|
|
|
|
onModalClose={onModalClose}
|
|
|
|
onModalClose={onModalClose}
|
|
|
|
onModalOpen={onModalOpen}
|
|
|
|
onModalOpen={onModalOpen}
|
|
|
|
title={intl.formatMessage(messages.advanced_options_icon_title)}
|
|
|
|
title={intl.formatMessage(messages.advanced_options_icon_title)}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
) : null}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|