diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-02 12:06:00 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-02 12:06:00 +1300 |
commit | a0c9cec5beb28448073b127c31df23134336f4cf (patch) | |
tree | c52c396dbfaf4b10084677af1720908efc00c7cb /web/app/Application.js | |
parent | a0a96b253b90d389a5c06ba1133b2a2f32ecb0fc (diff) | |
download | trackermap-server-a0c9cec5beb28448073b127c31df23134336f4cf.tar.gz trackermap-server-a0c9cec5beb28448073b127c31df23134336f4cf.tar.bz2 trackermap-server-a0c9cec5beb28448073b127c31df23134336f4cf.zip |
Implement REST login in the web app
Diffstat (limited to 'web/app/Application.js')
-rw-r--r-- | web/app/Application.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/app/Application.js b/web/app/Application.js index 34d65d13a..5cc192686 100644 --- a/web/app/Application.js +++ b/web/app/Application.js @@ -79,7 +79,9 @@ Ext.define('Traccar.Application', { }, showError: function (response) { - if (response.statusText) { + if (Ext.isString(response)) { + Ext.Msg.alert(Strings.errorTitle, response); + } else if (response.statusText) { Ext.Msg.alert(Strings.errorTitle, response.statusText); } else { Ext.Msg.alert(Strings.errorTitle, Strings.errorConnection); |