diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-02-10 00:15:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-10 00:15:30 +0100 |
commit | 63002cde03a836b4510aca5da564504ecaedb5e9 (patch) | |
tree | f6749dd6bafae30c8708559da037668f5585b16e /app/javascript/mastodon/features/compose/containers/compose_form_container.js | |
parent | 20a3564ab280a004cc7c075c00f63e70b1d65e07 (diff) |
Add editing for published statuses (#17320)
* Add editing for published statuses * Fix change of multiple-choice boolean in poll not resetting votes * Remove the ability to update existing media attachments for now
Diffstat (limited to 'app/javascript/mastodon/features/compose/containers/compose_form_container.js')
-rw-r--r-- | app/javascript/mastodon/features/compose/containers/compose_form_container.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/mastodon/features/compose/containers/compose_form_container.js b/app/javascript/mastodon/features/compose/containers/compose_form_container.js index c44850294..1be7633cc 100644 --- a/app/javascript/mastodon/features/compose/containers/compose_form_container.js +++ b/app/javascript/mastodon/features/compose/containers/compose_form_container.js @@ -21,6 +21,7 @@ const mapStateToProps = state => ({ caretPosition: state.getIn(['compose', 'caretPosition']), preselectDate: state.getIn(['compose', 'preselectDate']), isSubmitting: state.getIn(['compose', 'is_submitting']), + isEditing: state.getIn(['compose', 'id']) !== null, isChangingUpload: state.getIn(['compose', 'is_changing_upload']), isUploading: state.getIn(['compose', 'is_uploading']), showSearch: state.getIn(['search', 'submitted']) && !state.getIn(['search', 'hidden']), |