aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/device
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/device')
-rw-r--r--web/app/view/device/Device.js4
-rw-r--r--web/app/view/device/DeviceController.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/web/app/view/device/Device.js b/web/app/view/device/Device.js
index 98b94b97b..9cb2123dd 100644
--- a/web/app/view/device/Device.js
+++ b/web/app/view/device/Device.js
@@ -64,12 +64,12 @@ Ext.define('Traccar.view.device.Device', {
handler: 'onUserClick'
}, {
text: strings.settingsServer,
- disabled: true,
+ hidden: true,
handler: 'onServerClick',
reference: 'settingsServerButton'
}, {
text: strings.settingsUsers,
- disabled: true,
+ hidden: true,
handler: 'onUsersClick',
reference: 'settingsUsersButton'
}]
diff --git a/web/app/view/device/DeviceController.js b/web/app/view/device/DeviceController.js
index 5a0ea85df..31caa5147 100644
--- a/web/app/view/device/DeviceController.js
+++ b/web/app/view/device/DeviceController.js
@@ -38,8 +38,8 @@ Ext.define('Traccar.view.device.DeviceController', {
init: function() {
if (Traccar.getApplication().getUser().get('admin')) {
- this.lookupReference('settingsServerButton').setDisabled(false);
- this.lookupReference('settingsUsersButton').setDisabled(false);
+ this.lookupReference('settingsServerButton').setHidden(false);
+ this.lookupReference('settingsUsersButton').setHidden(false);
}
},