Device manager - promote to beta (#9380)
* promote new session manager to beta * hide old sessions section when new dm enabled * use correct logic * add new ViewUserDeviceSettings action * replace device management ctas with viewUserDeviceSettings * test SecurityUserSettingsTab * more complete mocks * more thorough mocks * more mocks * test LabsUserSettingsTab * lint * updated copy * update snaps for new copy
This commit is contained in:
parent
b336e18eae
commit
87d3fbd996
15 changed files with 504 additions and 19 deletions
|
@ -346,19 +346,29 @@ export default class SecurityUserSettingsTab extends React.Component<IProps, ISt
|
|||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="mx_SettingsTab mx_SecurityUserSettingsTab">
|
||||
{ warning }
|
||||
const useNewSessionManager = SettingsStore.getValue("feature_new_device_manager");
|
||||
const devicesSection = useNewSessionManager
|
||||
? null
|
||||
: <>
|
||||
<div className="mx_SettingsTab_heading">{ _t("Where you're signed in") }</div>
|
||||
<div className="mx_SettingsTab_section">
|
||||
<div
|
||||
className="mx_SettingsTab_section"
|
||||
data-testid="devices-section"
|
||||
>
|
||||
<span className="mx_SettingsTab_subsectionText">
|
||||
{ _t(
|
||||
"Manage your signed-in devices below. " +
|
||||
"A device's name is visible to people you communicate with.",
|
||||
"A device's name is visible to people you communicate with.",
|
||||
) }
|
||||
</span>
|
||||
<DevicesPanel />
|
||||
</div>
|
||||
</>;
|
||||
|
||||
return (
|
||||
<div className="mx_SettingsTab mx_SecurityUserSettingsTab">
|
||||
{ warning }
|
||||
{ devicesSection }
|
||||
<div className="mx_SettingsTab_heading">{ _t("Encryption") }</div>
|
||||
<div className="mx_SettingsTab_section">
|
||||
{ secureBackup }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue