Updated subtitle toggle copy

closes https://linear.app/tryghost/issue/MOM-188

- subtitle setting copy reflects the subtitle/excerpt terminology based on the subtitle-in-editor beta flag
This commit is contained in:
Kevin Ansfield 2024-06-04 09:42:45 +01:00
parent 417c83d3e9
commit fc7d9d12bb

View File

@ -104,6 +104,7 @@ const Sidebar: React.FC<{
const [selectedTab, setSelectedTab] = useState('generalSettings');
const hasEmailCustomization = useFeatureFlag('emailCustomization');
const hasNewsletterSubtitle = useFeatureFlag('newsletterSubtitle');
const hasEditorSubtitle = useFeatureFlag('editorSubtitle');
const {localSettings} = useSettingGroup();
const [siteTitle] = getSettingValues(localSettings, ['title']) as string[];
const handleError = useHandleError();
@ -422,7 +423,7 @@ const Sidebar: React.FC<{
<Toggle
checked={newsletter.show_subhead}
direction="rtl"
label='Subtitle'
label={hasEditorSubtitle ? 'Subtitle' : 'Post excerpt'}
onChange={e => updateNewsletter({show_subhead: e.target.checked})}
/>
}