From c4e6605adacb3d60501441bd4e829f8618d8f373 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 5 Aug 2020 13:06:24 -0400 Subject: [PATCH] use button group as publish file header instead of title for better app parity --- ui/component/publishFile/view.jsx | 19 +++++-------------- ui/component/publishForm/view.jsx | 30 ++++++++++++++++-------------- 2 files changed, 21 insertions(+), 28 deletions(-) diff --git a/ui/component/publishFile/view.jsx b/ui/component/publishFile/view.jsx index 001479b04..fbb35cbcf 100644 --- a/ui/component/publishFile/view.jsx +++ b/ui/component/publishFile/view.jsx @@ -36,6 +36,7 @@ type Props = { setPublishMode: string => void, setPrevFileText: string => void, setAutoPopulateName: boolean => void, + header: any, }; function PublishFile(props: Props) { @@ -62,6 +63,7 @@ function PublishFile(props: Props) { setPrevFileText, autoPopulateName, setAutoPopulateName, + header, } = props; const ffmpegAvail = ffmpegStatus.available; @@ -324,28 +326,17 @@ function PublishFile(props: Props) { updatePublishForm(publishFormParams); } - let cardTitle; - if (publishing) { - cardTitle = ( - - {__('Uploading')} - - - ); - } else { - cardTitle = isStillEditing ? __('Edit') : __('Upload'); - } - const isPublishFile = mode === PUBLISH_MODES.FILE; const isPublishPost = mode === PUBLISH_MODES.POST; return ( - {cardTitle}{' '} + {header} + {publishing && } {inProgress &&