aboutsummaryrefslogtreecommitdiff
path: root/web/app/Application.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-01 11:30:44 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-01 11:30:44 +1200
commit8b68510d0f8c1baaad44d8b4011b92cf5efe76d9 (patch)
tree016012f3e525a21000282331f8246a76219ab7e1 /web/app/Application.js
parent670acf03fb75e56fc0efc0c1fcfac04060bfb985 (diff)
downloadtraccar-server-8b68510d0f8c1baaad44d8b4011b92cf5efe76d9.tar.gz
traccar-server-8b68510d0f8c1baaad44d8b4011b92cf5efe76d9.tar.bz2
traccar-server-8b68510d0f8c1baaad44d8b4011b92cf5efe76d9.zip
Store current user model
Diffstat (limited to 'web/app/Application.js')
-rw-r--r--web/app/Application.js11
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;
+ }
+
});