From 62db06b85439b21a7851016f3e9c17f0abfe7185 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 12 Nov 2018 15:18:13 +1300 Subject: Rename maintenances to maintenance --- web/app/store/AllMaintenances.js | 2 +- web/app/store/CommonUserAttributes.js | 4 ++-- web/app/store/Maintenances.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'web/app/store') diff --git a/web/app/store/AllMaintenances.js b/web/app/store/AllMaintenances.js index 745b5d64..8435ad40 100644 --- a/web/app/store/AllMaintenances.js +++ b/web/app/store/AllMaintenances.js @@ -22,7 +22,7 @@ Ext.define('Traccar.store.AllMaintenances', { proxy: { type: 'rest', - url: 'api/maintenances', + url: 'api/maintenance', extraParams: { all: true } diff --git a/web/app/store/CommonUserAttributes.js b/web/app/store/CommonUserAttributes.js index 0ee9e163..a8e92825 100644 --- a/web/app/store/CommonUserAttributes.js +++ b/web/app/store/CommonUserAttributes.js @@ -63,8 +63,8 @@ Ext.define('Traccar.store.CommonUserAttributes', { name: Strings.attributeUiDisableCalendars, valueType: 'boolean' }, { - key: 'ui.disableMaintenances', - name: Strings.attributeUiDisableMaintenances, + key: 'ui.disableMaintenance', + name: Strings.attributeUiDisableMaintenance, valueType: 'boolean' }, { key: 'ui.hidePositionAttributes', diff --git a/web/app/store/Maintenances.js b/web/app/store/Maintenances.js index 43d6ba5b..a7aa4a07 100644 --- a/web/app/store/Maintenances.js +++ b/web/app/store/Maintenances.js @@ -22,7 +22,7 @@ Ext.define('Traccar.store.Maintenances', { proxy: { type: 'rest', - url: 'api/maintenances', + url: 'api/maintenance', writer: { writeAllFields: true } -- cgit v1.2.3