diff options
author | Anton Tananaev <anton@traccar.org> | 2023-04-23 07:57:34 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-04-23 07:57:34 -0700 |
commit | 8bf5fd13490ef4b288315e507d8554d7aa356b23 (patch) | |
tree | 782c952825467f8578297ed27a08348df19ee1cd /web/app | |
parent | 4dbdea0ba08b02b5bce673dba1447765fd4e3515 (diff) | |
download | trackermap-web-8bf5fd13490ef4b288315e507d8554d7aa356b23.tar.gz trackermap-web-8bf5fd13490ef4b288315e507d8554d7aa356b23.tar.bz2 trackermap-web-8bf5fd13490ef4b288315e507d8554d7aa356b23.zip |
Remove geofence ids
Diffstat (limited to 'web/app')
-rw-r--r-- | web/app/controller/Root.js | 3 | ||||
-rw-r--r-- | web/app/model/Device.js | 2 | ||||
-rw-r--r-- | web/app/view/edit/Devices.js | 22 |
3 files changed, 1 insertions, 26 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js index a37bc06f..22869f45 100644 --- a/web/app/controller/Root.js +++ b/web/app/controller/Root.js @@ -298,8 +298,7 @@ Ext.define('Traccar.controller.Root', { if (entity) { entity.set({ status: array[i].status, - lastUpdate: array[i].lastUpdate, - geofenceIds: array[i].geofenceIds + lastUpdate: array[i].lastUpdate }, { dirty: false }); diff --git a/web/app/model/Device.js b/web/app/model/Device.js index df6b09be..ca1e07a6 100644 --- a/web/app/model/Device.js +++ b/web/app/model/Device.js @@ -59,8 +59,6 @@ Ext.define('Traccar.model.Device', { name: 'disabled', type: 'boolean' }, { - name: 'geofenceIds' - }, { name: 'attributes' }] }); diff --git a/web/app/view/edit/Devices.js b/web/app/view/edit/Devices.js index 21fdb32a..5f54202a 100644 --- a/web/app/view/edit/Devices.js +++ b/web/app/view/edit/Devices.js @@ -135,28 +135,6 @@ Ext.define('Traccar.view.edit.Devices', { hidden: true, filter: 'boolean' }, { - text: Strings.sharedGeofences, - dataIndex: 'geofenceIds', - hidden: true, - filter: { - type: 'arraylist', - idField: 'id', - labelField: 'name', - store: 'Geofences' - }, - renderer: function (value) { - var i, name, result = ''; - if (Ext.isArray(value)) { - for (i = 0; i < value.length; i++) { - name = Traccar.AttributeFormatter.geofenceIdFormatter(value[i]); - if (name) { - result += name + (i < value.length - 1 ? ', ' : ''); - } - } - } - return result; - } - }, { text: Strings.deviceStatus, dataIndex: 'status', filter: { |