Active Websites: Hide option if empty (#2256)
This commit is contained in:
parent
8ea558bbab
commit
9e4ec8286c
@ -143,14 +143,6 @@ const SettingsPrivacy: FC<OwnProps & StateProps> = ({
|
|||||||
{lang('BlockedUsers')}
|
{lang('BlockedUsers')}
|
||||||
<span className="settings-item__current-value">{blockedCount || ''}</span>
|
<span className="settings-item__current-value">{blockedCount || ''}</span>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
<ListItem
|
|
||||||
icon="web"
|
|
||||||
// eslint-disable-next-line react/jsx-no-bind
|
|
||||||
onClick={() => onScreenSelect(SettingsScreens.ActiveWebsites)}
|
|
||||||
>
|
|
||||||
{lang('PrivacySettings.WebSessions')}
|
|
||||||
<span className="settings-item__current-value">{webAuthCount || ''}</span>
|
|
||||||
</ListItem>
|
|
||||||
<ListItem
|
<ListItem
|
||||||
icon="key"
|
icon="key"
|
||||||
narrow
|
narrow
|
||||||
@ -181,6 +173,16 @@ const SettingsPrivacy: FC<OwnProps & StateProps> = ({
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
|
{webAuthCount > 0 && (
|
||||||
|
<ListItem
|
||||||
|
icon="web"
|
||||||
|
// eslint-disable-next-line react/jsx-no-bind
|
||||||
|
onClick={() => onScreenSelect(SettingsScreens.ActiveWebsites)}
|
||||||
|
>
|
||||||
|
{lang('PrivacySettings.WebSessions')}
|
||||||
|
<span className="settings-item__current-value">{webAuthCount}</span>
|
||||||
|
</ListItem>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="settings-item">
|
<div className="settings-item">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user