diff options
Diffstat (limited to 'web/app')
-rw-r--r-- | web/app/Application.js | 2 | ||||
-rw-r--r-- | web/app/store/CommandTypes.js (renamed from web/app/store/SupportedCommands.js) | 4 | ||||
-rw-r--r-- | web/app/view/CommandDialog.js | 2 |
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: { |