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 &&