From 3f4190a60c119f55822b218cc54fff22ff3c2ac5 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 1 Aug 2017 16:13:55 +1200 Subject: Handle report exceptions --- web/app/store/ReportTrips.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'web/app/store/ReportTrips.js') diff --git a/web/app/store/ReportTrips.js b/web/app/store/ReportTrips.js index b369ab2b..d8aa9226 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); + } } } }); -- cgit v1.2.3