aboutsummaryrefslogtreecommitdiff
path: root/web/app/store
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/store')
-rw-r--r--web/app/store/ReportEvents.js5
-rw-r--r--web/app/store/ReportRoute.js5
-rw-r--r--web/app/store/ReportStops.js5
-rw-r--r--web/app/store/ReportSummary.js5
-rw-r--r--web/app/store/ReportTrips.js5
5 files changed, 25 insertions, 0 deletions
diff --git a/web/app/store/ReportEvents.js b/web/app/store/ReportEvents.js
index e0251be..ca90693 100644
--- a/web/app/store/ReportEvents.js
+++ b/web/app/store/ReportEvents.js
@@ -24,6 +24,11 @@ Ext.define('Traccar.store.ReportEvents', {
url: 'api/reports/events',
headers: {
'Accept': 'application/json'
+ },
+ listeners: {
+ exception: function (proxy, exception) {
+ Traccar.app.showError(exception);
+ }
}
}
});
diff --git a/web/app/store/ReportRoute.js b/web/app/store/ReportRoute.js
index 5432bef..6ee4bbc 100644
--- a/web/app/store/ReportRoute.js
+++ b/web/app/store/ReportRoute.js
@@ -24,6 +24,11 @@ Ext.define('Traccar.store.ReportRoute', {
url: 'api/reports/route',
headers: {
'Accept': 'application/json'
+ },
+ listeners: {
+ exception: function (proxy, exception) {
+ Traccar.app.showError(exception);
+ }
}
}
});
diff --git a/web/app/store/ReportStops.js b/web/app/store/ReportStops.js
index 60826b7..9e9ba13 100644
--- a/web/app/store/ReportStops.js
+++ b/web/app/store/ReportStops.js
@@ -25,6 +25,11 @@ Ext.define('Traccar.store.ReportStops', {
url: 'api/reports/stops',
headers: {
'Accept': 'application/json'
+ },
+ listeners: {
+ exception: function (proxy, exception) {
+ Traccar.app.showError(exception);
+ }
}
}
});
diff --git a/web/app/store/ReportSummary.js b/web/app/store/ReportSummary.js
index ad30a5f..4e53d94 100644
--- a/web/app/store/ReportSummary.js
+++ b/web/app/store/ReportSummary.js
@@ -25,6 +25,11 @@ Ext.define('Traccar.store.ReportSummary', {
url: 'api/reports/summary',
headers: {
'Accept': 'application/json'
+ },
+ listeners: {
+ exception: function (proxy, exception) {
+ Traccar.app.showError(exception);
+ }
}
}
});
diff --git a/web/app/store/ReportTrips.js b/web/app/store/ReportTrips.js
index b369ab2..d8aa922 100644
--- a/web/app/store/ReportTrips.js
+++ b/web/app/store/ReportTrips.js
@@ -25,6 +25,11 @@ Ext.define('Traccar.store.ReportTrips', {
url: 'api/reports/trips',
headers: {
'Accept': 'application/json'
+ },
+ listeners: {
+ exception: function (proxy, exception) {
+ Traccar.app.showError(exception);
+ }
}
}
});