From de9b6e3a6a8b62ffc2219d980f6ac4fea3f005d7 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 23 Dec 2016 00:38:16 +0100 Subject: Compose form in the UI now has public/private toggle instead of public/unlisted --- app/assets/javascripts/components/actions/compose.jsx | 4 ++-- .../components/features/compose/components/compose_form.jsx | 4 ++-- .../features/compose/containers/compose_form_container.jsx | 2 +- app/assets/javascripts/components/locales/en.jsx | 4 ++-- app/assets/javascripts/components/reducers/compose.jsx | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) (limited to 'app/assets') diff --git a/app/assets/javascripts/components/actions/compose.jsx b/app/assets/javascripts/components/actions/compose.jsx index fdb0abdcd..9c9ec9dde 100644 --- a/app/assets/javascripts/components/actions/compose.jsx +++ b/app/assets/javascripts/components/actions/compose.jsx @@ -67,14 +67,14 @@ export function submitCompose() { in_reply_to_id: getState().getIn(['compose', 'in_reply_to'], null), media_ids: getState().getIn(['compose', 'media_attachments']).map(item => item.get('id')), sensitive: getState().getIn(['compose', 'sensitive']), - visibility: getState().getIn(['compose', 'unlisted']) ? 'unlisted' : 'public' + visibility: getState().getIn(['compose', 'private']) ? 'private' : 'public' }).then(function (response) { dispatch(submitComposeSuccess({ ...response.data })); // To make the app more responsive, immediately get the status into the columns dispatch(updateTimeline('home', { ...response.data })); - if (response.data.in_reply_to_id === null && !getState().getIn(['compose', 'unlisted'])) { + if (response.data.in_reply_to_id === null && !getState().getIn(['compose', 'private'])) { dispatch(updateTimeline('public', { ...response.data })); } }).catch(function (error) { diff --git a/app/assets/javascripts/components/features/compose/components/compose_form.jsx b/app/assets/javascripts/components/features/compose/components/compose_form.jsx index 200502dad..6a0e6778d 100644 --- a/app/assets/javascripts/components/features/compose/components/compose_form.jsx +++ b/app/assets/javascripts/components/features/compose/components/compose_form.jsx @@ -117,8 +117,8 @@ const ComposeForm = React.createClass({