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">
|
||||
{/* @if TARGET='app' */}
|
||||
<label className="section help">{__('App Notifications')}</label>
|
||||
<div className="section">
|
||||
<Card
|
||||
title={__('App Notifications')}
|
||||
subtitle={__('Notification settings for the desktop app.')}
|
||||
actions={
|
||||
<FormField
|
||||
type="checkbox"
|
||||
name="desktopNotification"
|
||||
|
@ -127,12 +129,14 @@ export default function NotificationSettingsPage(props: Props) {
|
|||
label={__('Show Desktop Notifications')}
|
||||
helper={__('Get notified when a publish or channel is confirmed.')}
|
||||
/>
|
||||
</div>
|
||||
}
|
||||
/>
|
||||
|
||||
{/* @endif */}
|
||||
|
||||
{enabledEmails && enabledEmails.length > 0 && (
|
||||
<Card
|
||||
title={__('Receiving Addresses')}
|
||||
title={enabledEmails.length === 1 ? __('Your Email') : __('Receiving Addresses')}
|
||||
subtitle={__('Uncheck your email below if you want to stop receiving messages.')}
|
||||
actions={
|
||||
<>
|
||||
|
|
Loading…
Reference in a new issue