diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-08-01 16:13:55 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-08-01 16:13:55 +1200 |
commit | 3f4190a60c119f55822b218cc54fff22ff3c2ac5 (patch) | |
tree | 37c7b37b0deeb5d45b65d6e5f01e2e1a807944fa /web/app/store/ReportSummary.js | |
parent | a2e350b15065bf9922631944daa95790b7a869a8 (diff) | |
download | trackermap-web-3f4190a60c119f55822b218cc54fff22ff3c2ac5.tar.gz trackermap-web-3f4190a60c119f55822b218cc54fff22ff3c2ac5.tar.bz2 trackermap-web-3f4190a60c119f55822b218cc54fff22ff3c2ac5.zip |
Handle report exceptions
Diffstat (limited to 'web/app/store/ReportSummary.js')
-rw-r--r-- | web/app/store/ReportSummary.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web/app/store/ReportSummary.js b/web/app/store/ReportSummary.js index ad30a5f3..4e53d948 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); + } } } }); |