Merge pull request #3963 from matrix-org/jryans/user-info-device-id

Add device IDs in user info tooltips
This commit is contained in:
J. Ryan Stinnett 2020-01-28 20:05:43 +00:00 committed by GitHub
commit 02ba548a62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -183,11 +183,17 @@ function DeviceItem({userId, device}) {
(device.getDisplayName() ? device.getDisplayName() : "") + " (" + device.deviceId + ")" :
device.getDisplayName();
const trustedLabel = isVerified ? _t("Trusted") : _t("Not trusted");
return (<AccessibleButton className={classes} onClick={onDeviceClick}>
return (
<AccessibleButton
className={classes}
title={device.deviceId}
onClick={onDeviceClick}
>
<div className={iconClasses} />
<div className="mx_UserInfo_device_name">{deviceName}</div>
<div className="mx_UserInfo_device_trusted">{trustedLabel}</div>
</AccessibleButton>);
</AccessibleButton>
);
}
function DevicesSection({devices, userId, loading}) {