aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/dialog/Device.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-12-26 09:01:04 +0500
committerAbyss777 <abyss@fox5.ru>2017-12-28 09:13:37 +0500
commit54210c6f8bcd5d2e467d63aa5ac51389c8853b5f (patch)
tree603fca42924479dd6aca922e29008d5c1c68e828 /web/app/view/dialog/Device.js
parent19768f9c88958207a20a81bdfe7ee630bf400973 (diff)
downloadtrackermap-web-54210c6f8bcd5d2e467d63aa5ac51389c8853b5f.tar.gz
trackermap-web-54210c6f8bcd5d2e467d63aa5ac51389c8853b5f.tar.bz2
trackermap-web-54210c6f8bcd5d2e467d63aa5ac51389c8853b5f.zip
Implement disabling devices
Diffstat (limited to 'web/app/view/dialog/Device.js')
-rw-r--r--web/app/view/dialog/Device.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/web/app/view/dialog/Device.js b/web/app/view/dialog/Device.js
index c024bf3c..50a5e79c 100644
--- a/web/app/view/dialog/Device.js
+++ b/web/app/view/dialog/Device.js
@@ -19,9 +19,11 @@ Ext.define('Traccar.view.dialog.Device', {
extend: 'Traccar.view.dialog.BaseEdit',
requires: [
- 'Traccar.view.ClearableComboBox'
+ 'Traccar.view.ClearableComboBox',
+ 'Traccar.view.dialog.DeviceController'
],
+ controller: 'device',
title: Strings.sharedDevice,
items: {
@@ -82,6 +84,14 @@ Ext.define('Traccar.view.dialog.Device', {
'<td>{name}</td></tr></table>';
}
}
+ }, {
+ xtype: 'checkboxfield',
+ inputValue: true,
+ uncheckedValue: false,
+ name: 'disabled',
+ fieldLabel: Strings.sharedDisabled,
+ hidden: true,
+ reference: 'disabledField'
}]
}]
}