mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
Add device_id to devices display
(it turns out to be quite useful)
This commit is contained in:
parent
3704e2c648
commit
55a28564b9
2 changed files with 5 additions and 1 deletions
|
@ -52,7 +52,7 @@ export default class DevicesPanel extends React.Component {
|
|||
(error) => {
|
||||
if (this._unmounted) { return; }
|
||||
var errtxt;
|
||||
if (err.httpStatus == 404) {
|
||||
if (error.httpStatus == 404) {
|
||||
// 404 probably means the HS doesn't yet support the API.
|
||||
errtxt = "Your home server does not support device management.";
|
||||
} else {
|
||||
|
@ -127,6 +127,7 @@ export default class DevicesPanel extends React.Component {
|
|||
return (
|
||||
<div className={classes}>
|
||||
<div className="mx_DevicesPanel_header">
|
||||
<div className="mx_DevicesPanel_deviceId">ID</div>
|
||||
<div className="mx_DevicesPanel_deviceName">Name</div>
|
||||
<div className="mx_DevicesPanel_deviceLastSeen">Last seen</div>
|
||||
<div className="mx_DevicesPanel_deviceButtons"></div>
|
||||
|
|
|
@ -109,6 +109,9 @@ export default class DevicesPanelEntry extends React.Component {
|
|||
|
||||
return (
|
||||
<div className="mx_DevicesPanel_device">
|
||||
<div className="mx_DevicesPanel_deviceId">
|
||||
{device.device_id}
|
||||
</div>
|
||||
<div className="mx_DevicesPanel_deviceName">
|
||||
<EditableTextContainer initialValue={device.display_name}
|
||||
onSubmit={this._onDisplayNameChanged}
|
||||
|
|
Loading…
Reference in a new issue