aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
authorGabor Somogyi <Gabor_Somogyi@epam.com>2016-05-04 12:49:23 +0200
committerGabor Somogyi <Gabor_Somogyi@epam.com>2016-05-04 12:49:23 +0200
commit1cc86f7df5704aa19d1af643c5fbf852a301858b (patch)
tree28ffae07132f57c2cdd7fd065b2315f4fb7cd7fd /web/app/view
parent1a605980b1a120614ccaeb56faac37b05a81a4e9 (diff)
downloadtraccar-server-1cc86f7df5704aa19d1af643c5fbf852a301858b.tar.gz
traccar-server-1cc86f7df5704aa19d1af643c5fbf852a301858b.tar.bz2
traccar-server-1cc86f7df5704aa19d1af643c5fbf852a301858b.zip
SupportedCommand model removed
Diffstat (limited to 'web/app/view')
-rw-r--r--web/app/view/CommandDialog.js2
-rw-r--r--web/app/view/CommandDialogController.js3
2 files changed, 4 insertions, 1 deletions
diff --git a/web/app/view/CommandDialog.js b/web/app/view/CommandDialog.js
index e24105699..05412f39c 100644
--- a/web/app/view/CommandDialog.js
+++ b/web/app/view/CommandDialog.js
@@ -31,7 +31,7 @@ Ext.define('Traccar.view.CommandDialog', {
name: 'type',
fieldLabel: Strings.commandType,
store: 'SupportedCommands',
- displayField: 'name',
+ displayField: 'key',
valueField: 'key',
listeners: {
select: 'onSelect'
diff --git a/web/app/view/CommandDialogController.js b/web/app/view/CommandDialogController.js
index 93109a2d6..ec6b8b3b9 100644
--- a/web/app/view/CommandDialogController.js
+++ b/web/app/view/CommandDialogController.js
@@ -18,6 +18,9 @@ Ext.define('Traccar.view.CommandDialogController', {
extend: 'Ext.app.ViewController',
alias: 'controller.commandDialog',
+ onShow: function () {
+ },
+
onSelect: function (selected) {
this.lookupReference('paramPositionPeriodic').setHidden(
selected.getValue() !== 'positionPeriodic');