diff options
author | Gábor Somogyi <gabor.g.somogyi@gmail.com> | 2016-05-06 00:00:33 +0200 |
---|---|---|
committer | Gábor Somogyi <gabor.g.somogyi@gmail.com> | 2016-05-06 00:00:33 +0200 |
commit | 393192ff0253e74e1ada9cb364a1c05cc7ac7e23 (patch) | |
tree | ea07f1c29c9f9124b205e9b1df46118b8a11825c /web/app/store/CommandTypes.js | |
parent | 69c6d76fa6f5aba94477fae71fc348cd464ba2ac (diff) | |
download | trackermap-server-393192ff0253e74e1ada9cb364a1c05cc7ac7e23.tar.gz trackermap-server-393192ff0253e74e1ada9cb364a1c05cc7ac7e23.tar.bz2 trackermap-server-393192ff0253e74e1ada9cb364a1c05cc7ac7e23.zip |
Rename SupportedCommand to CommandType
Diffstat (limited to 'web/app/store/CommandTypes.js')
-rw-r--r-- | web/app/store/CommandTypes.js | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/web/app/store/CommandTypes.js b/web/app/store/CommandTypes.js new file mode 100644 index 000000000..d2f9b57e4 --- /dev/null +++ b/web/app/store/CommandTypes.js @@ -0,0 +1,33 @@ +/* + * Copyright 2016 Gabor Somogyi (gabor.g.somogyi@gmail.com) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +Ext.define('Traccar.store.CommandTypes', { + extend: 'Ext.data.Store', + fields: ['key'], + + listeners: { + 'beforeload' : function(store, eOpts) { + var proxy; + proxy = store.getProxy(); + proxy.setUrl('/api/commandtypes?deviceId' + proxy.extraParams.deviceId); + } + }, + + proxy: { + type: 'rest', + url: '' + } +}); |