aboutsummaryrefslogtreecommitdiff
path: root/web/app/Application.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-01 11:35:31 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-01 11:35:31 +1200
commit1d0e1d374bae176b829848b394155a917870e5a7 (patch)
tree1b86414c881c33ec0f76aadec0a2b64f0d33ac42 /web/app/Application.js
parent8b68510d0f8c1baaad44d8b4011b92cf5efe76d9 (diff)
downloadtrackermap-server-1d0e1d374bae176b829848b394155a917870e5a7.tar.gz
trackermap-server-1d0e1d374bae176b829848b394155a917870e5a7.tar.bz2
trackermap-server-1d0e1d374bae176b829848b394155a917870e5a7.zip
Add server settings model
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;
}
});