mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Fix copy to "Post excerpt" in newsletter settings (#20344)
MOM-209 Currently if the "Show post excerpt inline" is on we show "Subtitle" in newsletter settings, it should always be "Post excerpt" to avoid confusion.
This commit is contained in:
parent
a7a1166310
commit
909f2fa028
1 changed files with 1 additions and 2 deletions
|
@ -104,7 +104,6 @@ const Sidebar: React.FC<{
|
||||||
const [selectedTab, setSelectedTab] = useState('generalSettings');
|
const [selectedTab, setSelectedTab] = useState('generalSettings');
|
||||||
const hasEmailCustomization = useFeatureFlag('emailCustomization');
|
const hasEmailCustomization = useFeatureFlag('emailCustomization');
|
||||||
const hasNewsletterExcerpt = useFeatureFlag('newsletterExcerpt');
|
const hasNewsletterExcerpt = useFeatureFlag('newsletterExcerpt');
|
||||||
const hasEditorSubtitle = useFeatureFlag('editorExcerpt');
|
|
||||||
const {localSettings} = useSettingGroup();
|
const {localSettings} = useSettingGroup();
|
||||||
const [siteTitle] = getSettingValues(localSettings, ['title']) as string[];
|
const [siteTitle] = getSettingValues(localSettings, ['title']) as string[];
|
||||||
const handleError = useHandleError();
|
const handleError = useHandleError();
|
||||||
|
@ -423,7 +422,7 @@ const Sidebar: React.FC<{
|
||||||
<Toggle
|
<Toggle
|
||||||
checked={newsletter.show_excerpt}
|
checked={newsletter.show_excerpt}
|
||||||
direction="rtl"
|
direction="rtl"
|
||||||
label={hasEditorSubtitle ? 'Subtitle' : 'Post excerpt'}
|
label="Post excerpt"
|
||||||
onChange={e => updateNewsletter({show_excerpt: e.target.checked})}
|
onChange={e => updateNewsletter({show_excerpt: e.target.checked})}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue