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
Richard van der Hoff 2016-08-03 14:19:54 +01:00
parent f431e62e6b
commit f4d41b7847
1 changed files with 3 additions and 1 deletions

View File

@ -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}