Add device_id to devices display

(it turns out to be quite useful)
This commit is contained in:
Richard van der Hoff 2016-08-11 16:16:53 +01:00
parent 3704e2c648
commit 55a28564b9
2 changed files with 5 additions and 1 deletions

View file

@ -52,7 +52,7 @@ export default class DevicesPanel extends React.Component {
(error) => { (error) => {
if (this._unmounted) { return; } if (this._unmounted) { return; }
var errtxt; var errtxt;
if (err.httpStatus == 404) { if (error.httpStatus == 404) {
// 404 probably means the HS doesn't yet support the API. // 404 probably means the HS doesn't yet support the API.
errtxt = "Your home server does not support device management."; errtxt = "Your home server does not support device management.";
} else { } else {
@ -127,6 +127,7 @@ export default class DevicesPanel extends React.Component {
return ( return (
<div className={classes}> <div className={classes}>
<div className="mx_DevicesPanel_header"> <div className="mx_DevicesPanel_header">
<div className="mx_DevicesPanel_deviceId">ID</div>
<div className="mx_DevicesPanel_deviceName">Name</div> <div className="mx_DevicesPanel_deviceName">Name</div>
<div className="mx_DevicesPanel_deviceLastSeen">Last seen</div> <div className="mx_DevicesPanel_deviceLastSeen">Last seen</div>
<div className="mx_DevicesPanel_deviceButtons"></div> <div className="mx_DevicesPanel_deviceButtons"></div>

View file

@ -109,6 +109,9 @@ export default class DevicesPanelEntry extends React.Component {
return ( return (
<div className="mx_DevicesPanel_device"> <div className="mx_DevicesPanel_device">
<div className="mx_DevicesPanel_deviceId">
{device.device_id}
</div>
<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}