aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/app/Style.js1
-rw-r--r--web/app/store/ReportEvents.js1
-rw-r--r--web/app/store/ReportRoute.js1
-rw-r--r--web/app/store/ReportStops.js1
-rw-r--r--web/app/store/ReportSummary.js1
-rw-r--r--web/app/store/ReportTrips.js1
-rw-r--r--web/app/view/ReportController.js1
7 files changed, 7 insertions, 0 deletions
diff --git a/web/app/Style.js b/web/app/Style.js
index f12e9f53..b33e5c27 100644
--- a/web/app/Style.js
+++ b/web/app/Style.js
@@ -20,6 +20,7 @@ Ext.define('Traccar.Style', {
refreshPeriod: 60 * 1000,
reconnectTimeout: 60 * 1000,
+ reportTimeout: 120 * 1000,
normalPadding: 10,
diff --git a/web/app/store/ReportEvents.js b/web/app/store/ReportEvents.js
index ca90693d..061aaa42 100644
--- a/web/app/store/ReportEvents.js
+++ b/web/app/store/ReportEvents.js
@@ -22,6 +22,7 @@ Ext.define('Traccar.store.ReportEvents', {
proxy: {
type: 'rest',
url: 'api/reports/events',
+ timeout: Traccar.Style.reportTimeout,
headers: {
'Accept': 'application/json'
},
diff --git a/web/app/store/ReportRoute.js b/web/app/store/ReportRoute.js
index 6ee4bbcd..7babe163 100644
--- a/web/app/store/ReportRoute.js
+++ b/web/app/store/ReportRoute.js
@@ -22,6 +22,7 @@ Ext.define('Traccar.store.ReportRoute', {
proxy: {
type: 'rest',
url: 'api/reports/route',
+ timeout: Traccar.Style.reportTimeout,
headers: {
'Accept': 'application/json'
},
diff --git a/web/app/store/ReportStops.js b/web/app/store/ReportStops.js
index 9e9ba13e..75c9fc18 100644
--- a/web/app/store/ReportStops.js
+++ b/web/app/store/ReportStops.js
@@ -23,6 +23,7 @@ Ext.define('Traccar.store.ReportStops', {
proxy: {
type: 'rest',
url: 'api/reports/stops',
+ timeout: Traccar.Style.reportTimeout,
headers: {
'Accept': 'application/json'
},
diff --git a/web/app/store/ReportSummary.js b/web/app/store/ReportSummary.js
index 4e53d948..f328da2d 100644
--- a/web/app/store/ReportSummary.js
+++ b/web/app/store/ReportSummary.js
@@ -23,6 +23,7 @@ Ext.define('Traccar.store.ReportSummary', {
proxy: {
type: 'rest',
url: 'api/reports/summary',
+ timeout: Traccar.Style.reportTimeout,
headers: {
'Accept': 'application/json'
},
diff --git a/web/app/store/ReportTrips.js b/web/app/store/ReportTrips.js
index d8aa9226..057cc7c0 100644
--- a/web/app/store/ReportTrips.js
+++ b/web/app/store/ReportTrips.js
@@ -23,6 +23,7 @@ Ext.define('Traccar.store.ReportTrips', {
proxy: {
type: 'rest',
url: 'api/reports/trips',
+ timeout: Traccar.Style.reportTimeout,
headers: {
'Accept': 'application/json'
},
diff --git a/web/app/view/ReportController.js b/web/app/view/ReportController.js
index 62a8a924..204c36cb 100644
--- a/web/app/view/ReportController.js
+++ b/web/app/view/ReportController.js
@@ -367,6 +367,7 @@ Ext.define('Traccar.view.ReportController', {
Ext.Ajax.request({
url: requestUrl,
method: 'GET',
+ timeout: Traccar.Style.reportTimeout,
params: requestParams,
headers: {
Accept: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'