aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorGábor Somogyi <gabor.g.somogyi@gmail.com>2016-05-06 00:00:33 +0200
committerGábor Somogyi <gabor.g.somogyi@gmail.com>2016-05-06 00:00:33 +0200
commit393192ff0253e74e1ada9cb364a1c05cc7ac7e23 (patch)
treeea07f1c29c9f9124b205e9b1df46118b8a11825c /web
parent69c6d76fa6f5aba94477fae71fc348cd464ba2ac (diff)
downloadtrackermap-server-393192ff0253e74e1ada9cb364a1c05cc7ac7e23.tar.gz
trackermap-server-393192ff0253e74e1ada9cb364a1c05cc7ac7e23.tar.bz2
trackermap-server-393192ff0253e74e1ada9cb364a1c05cc7ac7e23.zip
Rename SupportedCommand to CommandType
Diffstat (limited to 'web')
-rw-r--r--web/app/Application.js2
-rw-r--r--web/app/store/CommandTypes.js (renamed from web/app/store/SupportedCommands.js)4
-rw-r--r--web/app/view/CommandDialog.js2
3 files changed, 4 insertions, 4 deletions
diff --git a/web/app/Application.js b/web/app/Application.js
index f68ef981e..69ce8f891 100644
--- a/web/app/Application.js
+++ b/web/app/Application.js
@@ -45,7 +45,7 @@ Ext.define('Traccar.Application', {
'MapTypes',
'DistanceUnits',
'SpeedUnits',
- 'SupportedCommands',
+ 'CommandTypes',
'TimeUnits',
'Languages'
],
diff --git a/web/app/store/SupportedCommands.js b/web/app/store/CommandTypes.js
index 2bb73839b..d2f9b57e4 100644
--- a/web/app/store/SupportedCommands.js
+++ b/web/app/store/CommandTypes.js
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-Ext.define('Traccar.store.SupportedCommands', {
+Ext.define('Traccar.store.CommandTypes', {
extend: 'Ext.data.Store',
fields: ['key'],
@@ -22,7 +22,7 @@ Ext.define('Traccar.store.SupportedCommands', {
'beforeload' : function(store, eOpts) {
var proxy;
proxy = store.getProxy();
- proxy.setUrl('/api/supportedcommands?deviceId' + proxy.extraParams.deviceId);
+ proxy.setUrl('/api/commandtypes?deviceId' + proxy.extraParams.deviceId);
}
},
diff --git a/web/app/view/CommandDialog.js b/web/app/view/CommandDialog.js
index 05412f39c..f2c2f5541 100644
--- a/web/app/view/CommandDialog.js
+++ b/web/app/view/CommandDialog.js
@@ -30,7 +30,7 @@ Ext.define('Traccar.view.CommandDialog', {
xtype: 'combobox',
name: 'type',
fieldLabel: Strings.commandType,
- store: 'SupportedCommands',
+ store: 'CommandTypess',
displayField: 'key',
valueField: 'key',
listeners: {