You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
DevicesPanel: use device_id as a placeholder
A device may have no display_name set, in which case we probably want to use the device_id as a placeholder.
This commit is contained in:
@@ -111,7 +111,9 @@ export default class DevicesPanelEntry extends React.Component {
|
|||||||
<div className="mx_DevicesPanel_device">
|
<div className="mx_DevicesPanel_device">
|
||||||
<div className="mx_DevicesPanel_deviceName">
|
<div className="mx_DevicesPanel_deviceName">
|
||||||
<EditableTextContainer initialValue={device.display_name}
|
<EditableTextContainer initialValue={device.display_name}
|
||||||
onSubmit={this._onDisplayNameChanged} />
|
onSubmit={this._onDisplayNameChanged}
|
||||||
|
placeholder={device.device_id}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="mx_DevicesPanel_lastSeen">
|
<div className="mx_DevicesPanel_lastSeen">
|
||||||
{lastSeen}
|
{lastSeen}
|
||||||
|
|||||||
Reference in New Issue
Block a user