disambiguate devices by ID in memberinfo
This commit is contained in:
parent
6e57faecb0
commit
5fa5489bbd
2 changed files with 22 additions and 3 deletions
|
@ -145,16 +145,17 @@ export default class MemberDeviceInfo extends React.Component {
|
|||
);
|
||||
}
|
||||
|
||||
var deviceName = this.props.device.getDisplayName() || this.props.device.deviceId;
|
||||
var deviceName = this.props.device.ambiguous ?
|
||||
(this.props.device.getDisplayName() ? this.props.device.getDisplayName() : "") + " (" + this.props.device.deviceId + ")" :
|
||||
this.props.device.getDisplayName();
|
||||
|
||||
var info = (
|
||||
<div className="mx_MemberDeviceInfo_deviceInfo" title={ "device id: " + this.props.device.deviceId }>
|
||||
<div className="mx_MemberDeviceInfo_deviceInfo">
|
||||
<div className="mx_MemberDeviceInfo_deviceId">{deviceName}{indicator}</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
// add the deviceId as a titletext to help with debugging
|
||||
return (
|
||||
<div className="mx_MemberDeviceInfo">
|
||||
{ info }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue