|
|
@ -140,6 +140,7 @@ class ComposerOptions extends ImmutablePureComponent {
|
|
|
|
contentType: PropTypes.string,
|
|
|
|
contentType: PropTypes.string,
|
|
|
|
resetFileKey: PropTypes.number,
|
|
|
|
resetFileKey: PropTypes.number,
|
|
|
|
spoiler: PropTypes.bool,
|
|
|
|
spoiler: PropTypes.bool,
|
|
|
|
|
|
|
|
showContentTypeChoice: PropTypes.bool,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// Handles file selection.
|
|
|
|
// Handles file selection.
|
|
|
@ -197,6 +198,7 @@ class ComposerOptions extends ImmutablePureComponent {
|
|
|
|
privacy,
|
|
|
|
privacy,
|
|
|
|
resetFileKey,
|
|
|
|
resetFileKey,
|
|
|
|
spoiler,
|
|
|
|
spoiler,
|
|
|
|
|
|
|
|
showContentTypeChoice,
|
|
|
|
} = this.props;
|
|
|
|
} = this.props;
|
|
|
|
|
|
|
|
|
|
|
|
// We predefine our privacy items so that we can easily pick the
|
|
|
|
// We predefine our privacy items so that we can easily pick the
|
|
|
@ -310,6 +312,7 @@ class ComposerOptions extends ImmutablePureComponent {
|
|
|
|
title={intl.formatMessage(messages.change_privacy)}
|
|
|
|
title={intl.formatMessage(messages.change_privacy)}
|
|
|
|
value={privacy}
|
|
|
|
value={privacy}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
{showContentTypeChoice && (
|
|
|
|
<Dropdown
|
|
|
|
<Dropdown
|
|
|
|
disabled={disabled}
|
|
|
|
disabled={disabled}
|
|
|
|
icon={(contentTypeItems[contentType.split('/')[1]] || {}).icon}
|
|
|
|
icon={(contentTypeItems[contentType.split('/')[1]] || {}).icon}
|
|
|
@ -324,6 +327,7 @@ class ComposerOptions extends ImmutablePureComponent {
|
|
|
|
title={intl.formatMessage(messages.content_type)}
|
|
|
|
title={intl.formatMessage(messages.content_type)}
|
|
|
|
value={contentType}
|
|
|
|
value={contentType}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
)}
|
|
|
|
{onToggleSpoiler && (
|
|
|
|
{onToggleSpoiler && (
|
|
|
|
<TextIconButton
|
|
|
|
<TextIconButton
|
|
|
|
active={spoiler}
|
|
|
|
active={spoiler}
|
|
|
|