mirror of https://github.com/vector-im/riot-web
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.pull/21833/head
parent
f431e62e6b
commit
f4d41b7847
|
@ -111,7 +111,9 @@ export default class DevicesPanelEntry extends React.Component {
|
|||
<div className="mx_DevicesPanel_device">
|
||||
<div className="mx_DevicesPanel_deviceName">
|
||||
<EditableTextContainer initialValue={device.display_name}
|
||||
onSubmit={this._onDisplayNameChanged} />
|
||||
onSubmit={this._onDisplayNameChanged}
|
||||
placeholder={device.device_id}
|
||||
/>
|
||||
</div>
|
||||
<div className="mx_DevicesPanel_lastSeen">
|
||||
{lastSeen}
|
||||
|
|
Loading…
Reference in New Issue