From 8b68510d0f8c1baaad44d8b4011b92cf5efe76d9 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 1 Jun 2015 11:30:44 +1200 Subject: Store current user model --- web/app/Application.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'web/app/Application.js') 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; + } + }); -- cgit v1.2.3