|
|
@ -38,7 +38,6 @@ class ComposeForm extends ImmutablePureComponent {
|
|
|
|
suggestions: ImmutablePropTypes.list,
|
|
|
|
suggestions: ImmutablePropTypes.list,
|
|
|
|
spoiler: PropTypes.bool,
|
|
|
|
spoiler: PropTypes.bool,
|
|
|
|
privacy: PropTypes.string,
|
|
|
|
privacy: PropTypes.string,
|
|
|
|
contentType: PropTypes.string,
|
|
|
|
|
|
|
|
spoilerText: PropTypes.string,
|
|
|
|
spoilerText: PropTypes.string,
|
|
|
|
focusDate: PropTypes.instanceOf(Date),
|
|
|
|
focusDate: PropTypes.instanceOf(Date),
|
|
|
|
caretPosition: PropTypes.number,
|
|
|
|
caretPosition: PropTypes.number,
|
|
|
@ -67,7 +66,6 @@ class ComposeForm extends ImmutablePureComponent {
|
|
|
|
preselectOnReply: PropTypes.bool,
|
|
|
|
preselectOnReply: PropTypes.bool,
|
|
|
|
onChangeSpoilerness: PropTypes.func,
|
|
|
|
onChangeSpoilerness: PropTypes.func,
|
|
|
|
onChangeVisibility: PropTypes.func,
|
|
|
|
onChangeVisibility: PropTypes.func,
|
|
|
|
onChangeContentType: PropTypes.func,
|
|
|
|
|
|
|
|
onMount: PropTypes.func,
|
|
|
|
onMount: PropTypes.func,
|
|
|
|
onUnmount: PropTypes.func,
|
|
|
|
onUnmount: PropTypes.func,
|
|
|
|
onPaste: PropTypes.func,
|
|
|
|
onPaste: PropTypes.func,
|
|
|
@ -287,12 +285,10 @@ class ComposeForm extends ImmutablePureComponent {
|
|
|
|
media,
|
|
|
|
media,
|
|
|
|
onChangeSpoilerness,
|
|
|
|
onChangeSpoilerness,
|
|
|
|
onChangeVisibility,
|
|
|
|
onChangeVisibility,
|
|
|
|
onChangeContentType,
|
|
|
|
|
|
|
|
onClearSuggestions,
|
|
|
|
onClearSuggestions,
|
|
|
|
onFetchSuggestions,
|
|
|
|
onFetchSuggestions,
|
|
|
|
onPaste,
|
|
|
|
onPaste,
|
|
|
|
privacy,
|
|
|
|
privacy,
|
|
|
|
contentType,
|
|
|
|
|
|
|
|
sensitive,
|
|
|
|
sensitive,
|
|
|
|
showSearch,
|
|
|
|
showSearch,
|
|
|
|
sideArm,
|
|
|
|
sideArm,
|
|
|
@ -360,11 +356,9 @@ class ComposeForm extends ImmutablePureComponent {
|
|
|
|
advancedOptions={advancedOptions}
|
|
|
|
advancedOptions={advancedOptions}
|
|
|
|
disabled={isSubmitting}
|
|
|
|
disabled={isSubmitting}
|
|
|
|
onChangeVisibility={onChangeVisibility}
|
|
|
|
onChangeVisibility={onChangeVisibility}
|
|
|
|
onChangeContentType={onChangeContentType}
|
|
|
|
|
|
|
|
onToggleSpoiler={spoilersAlwaysOn ? null : onChangeSpoilerness}
|
|
|
|
onToggleSpoiler={spoilersAlwaysOn ? null : onChangeSpoilerness}
|
|
|
|
onUpload={onPaste}
|
|
|
|
onUpload={onPaste}
|
|
|
|
privacy={privacy}
|
|
|
|
privacy={privacy}
|
|
|
|
contentType={contentType}
|
|
|
|
|
|
|
|
sensitive={sensitive || (spoilersAlwaysOn && spoilerText && spoilerText.length > 0)}
|
|
|
|
sensitive={sensitive || (spoilersAlwaysOn && spoilerText && spoilerText.length > 0)}
|
|
|
|
spoiler={spoilersAlwaysOn ? (spoilerText && spoilerText.length > 0) : spoiler}
|
|
|
|
spoiler={spoilersAlwaysOn ? (spoilerText && spoilerText.length > 0) : spoiler}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
@ -375,7 +369,6 @@ class ComposeForm extends ImmutablePureComponent {
|
|
|
|
onSecondarySubmit={handleSecondarySubmit}
|
|
|
|
onSecondarySubmit={handleSecondarySubmit}
|
|
|
|
onSubmit={handleSubmit}
|
|
|
|
onSubmit={handleSubmit}
|
|
|
|
privacy={privacy}
|
|
|
|
privacy={privacy}
|
|
|
|
contentType={contentType}
|
|
|
|
|
|
|
|
sideArm={sideArm}
|
|
|
|
sideArm={sideArm}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|