update title when only 1 email address present
This commit is contained in:
parent
b4851e6045
commit
a17610d365
1 changed files with 16 additions and 12 deletions
|
@ -117,8 +117,10 @@ export default function NotificationSettingsPage(props: Props) {
|
||||||
) : (
|
) : (
|
||||||
<div className="card-stack">
|
<div className="card-stack">
|
||||||
{/* @if TARGET='app' */}
|
{/* @if TARGET='app' */}
|
||||||
<label className="section help">{__('App Notifications')}</label>
|
<Card
|
||||||
<div className="section">
|
title={__('App Notifications')}
|
||||||
|
subtitle={__('Notification settings for the desktop app.')}
|
||||||
|
actions={
|
||||||
<FormField
|
<FormField
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
name="desktopNotification"
|
name="desktopNotification"
|
||||||
|
@ -127,12 +129,14 @@ export default function NotificationSettingsPage(props: Props) {
|
||||||
label={__('Show Desktop Notifications')}
|
label={__('Show Desktop Notifications')}
|
||||||
helper={__('Get notified when a publish or channel is confirmed.')}
|
helper={__('Get notified when a publish or channel is confirmed.')}
|
||||||
/>
|
/>
|
||||||
</div>
|
}
|
||||||
|
/>
|
||||||
|
|
||||||
{/* @endif */}
|
{/* @endif */}
|
||||||
|
|
||||||
{enabledEmails && enabledEmails.length > 0 && (
|
{enabledEmails && enabledEmails.length > 0 && (
|
||||||
<Card
|
<Card
|
||||||
title={__('Receiving Addresses')}
|
title={enabledEmails.length === 1 ? __('Your Email') : __('Receiving Addresses')}
|
||||||
subtitle={__('Uncheck your email below if you want to stop receiving messages.')}
|
subtitle={__('Uncheck your email below if you want to stop receiving messages.')}
|
||||||
actions={
|
actions={
|
||||||
<>
|
<>
|
||||||
|
|
Loading…
Reference in a new issue