diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-01 11:30:44 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-01 11:30:44 +1200 |
commit | 8b68510d0f8c1baaad44d8b4011b92cf5efe76d9 (patch) | |
tree | 016012f3e525a21000282331f8246a76219ab7e1 /web/app/Application.js | |
parent | 670acf03fb75e56fc0efc0c1fcfac04060bfb985 (diff) | |
download | trackermap-server-8b68510d0f8c1baaad44d8b4011b92cf5efe76d9.tar.gz trackermap-server-8b68510d0f8c1baaad44d8b4011b92cf5efe76d9.tar.bz2 trackermap-server-8b68510d0f8c1baaad44d8b4011b92cf5efe76d9.zip |
Store current user model
Diffstat (limited to 'web/app/Application.js')
-rw-r--r-- | web/app/Application.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/web/app/Application.js b/web/app/Application.js index e17be1a15..62dedf22b 100644 --- a/web/app/Application.js +++ b/web/app/Application.js @@ -37,5 +37,14 @@ Ext.define('Traccar.Application', { controllers: [ 'Root' - ] + ], + + setUser: function(user) { + this.user = user; + }, + + getUser: function() { + return this.user; + } + }); |