diff options
Diffstat (limited to 'web/app/view/edit')
-rw-r--r-- | web/app/view/edit/Devices.js | 15 | ||||
-rw-r--r-- | web/app/view/edit/Users.js | 2 |
2 files changed, 13 insertions, 4 deletions
diff --git a/web/app/view/edit/Devices.js b/web/app/view/edit/Devices.js index 39550b6..6e581d4 100644 --- a/web/app/view/edit/Devices.js +++ b/web/app/view/edit/Devices.js @@ -81,11 +81,14 @@ Ext.define('Traccar.view.edit.Devices', { viewConfig: { enableTextSelection: true, getRowClass: function (record) { - var status = record.get('status'); + var status = record.get('status'), result = ''; + if (record.get('disabled')) { + result = 'view-item-disabled '; + } if (status) { - return Ext.getStore('DeviceStatuses').getById(status).get('color'); + result += Ext.getStore('DeviceStatuses').getById(status).get('color'); } - return null; + return result; } }, @@ -125,6 +128,12 @@ Ext.define('Traccar.view.edit.Devices', { }, renderer: Traccar.AttributeFormatter.getFormatter('groupId') }, { + text: Strings.sharedDisabled, + dataIndex: 'disabled', + renderer: Traccar.AttributeFormatter.getFormatter('disabled'), + hidden: true, + filter: 'boolean' + }, { text: Strings.sharedGeofences, dataIndex: 'geofenceIds', hidden: true, diff --git a/web/app/view/edit/Users.js b/web/app/view/edit/Users.js index fd37199..b0a67ff 100644 --- a/web/app/view/edit/Users.js +++ b/web/app/view/edit/Users.js @@ -133,7 +133,7 @@ Ext.define('Traccar.view.edit.Users', { hidden: true, filter: 'boolean' }, { - text: Strings.userDisabled, + text: Strings.sharedDisabled, dataIndex: 'disabled', renderer: Traccar.AttributeFormatter.getFormatter('disabled'), filter: 'boolean' |