From faff152ae52a406a1280b716543d737fd034badd Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Sun, 21 Apr 2019 18:48:33 +0200 Subject: Move ComposerPublisher to Compose --- .../features/compose/components/compose_form.js | 5 +- .../features/compose/components/publisher.js | 115 +++++++++++++++++++ .../glitch/features/composer/publisher/index.js | 122 --------------------- 3 files changed, 117 insertions(+), 125 deletions(-) create mode 100644 app/javascript/flavours/glitch/features/compose/components/publisher.js delete mode 100644 app/javascript/flavours/glitch/features/composer/publisher/index.js (limited to 'app/javascript/flavours') diff --git a/app/javascript/flavours/glitch/features/compose/components/compose_form.js b/app/javascript/flavours/glitch/features/compose/components/compose_form.js index 76a5117bc..2b9d2dca6 100644 --- a/app/javascript/flavours/glitch/features/compose/components/compose_form.js +++ b/app/javascript/flavours/glitch/features/compose/components/compose_form.js @@ -6,7 +6,7 @@ import ImmutablePureComponent from 'react-immutable-pure-component'; // Components. import OptionsContainer from '../containers/options_container'; -import ComposerPublisher from '../../composer/publisher'; +import Publisher from './publisher'; import TextareaIcons from './textarea_icons'; import UploadFormContainer from '../containers/upload_form_container'; import PollFormContainer from '../containers/poll_form_container'; @@ -367,10 +367,9 @@ class ComposeForm extends ImmutablePureComponent { spoiler={spoilersAlwaysOn ? (spoilerText && spoilerText.length > 0) : spoiler} /> - + {diff} + {sideArm && sideArm !== 'none' ? ( +