aboutsummaryrefslogtreecommitdiff
path: root/web/app/Application.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/Application.js')
-rw-r--r--web/app/Application.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/web/app/Application.js b/web/app/Application.js
index 62dedf22b..a024a1bf2 100644
--- a/web/app/Application.js
+++ b/web/app/Application.js
@@ -24,6 +24,7 @@ Ext.define('Traccar.Application', {
],
models: [
+ 'Server',
'User',
'Device',
'Position'
@@ -45,6 +46,14 @@ Ext.define('Traccar.Application', {
getUser: function() {
return this.user;
+ },
+
+ setServer: function(server) {
+ this.server = server;
+ },
+
+ getServer: function() {
+ return this.server;
}
});