From f4d41b78473200be4c9e19f433e3e97dbdb2413d Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Wed, 3 Aug 2016 14:19:54 +0100 Subject: [PATCH] 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. --- src/components/views/settings/DevicesPanelEntry.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/views/settings/DevicesPanelEntry.js b/src/components/views/settings/DevicesPanelEntry.js index 6858e62102..b660f196c8 100644 --- a/src/components/views/settings/DevicesPanelEntry.js +++ b/src/components/views/settings/DevicesPanelEntry.js @@ -111,7 +111,9 @@ export default class DevicesPanelEntry extends React.Component {
+ onSubmit={this._onDisplayNameChanged} + placeholder={device.device_id} + />
{lastSeen}