From d310875d1bf13baa13daba2ec73107dbeaa397f7 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 1 Jun 2015 12:36:28 +1200 Subject: Load server settings in web --- web/app/view/login/LoginController.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'web/app/view/login/LoginController.js') diff --git a/web/app/view/login/LoginController.js b/web/app/view/login/LoginController.js index c22b0e09a..e94d0de9d 100644 --- a/web/app/view/login/LoginController.js +++ b/web/app/view/login/LoginController.js @@ -22,6 +22,12 @@ Ext.define('Traccar.view.login.LoginController', { 'Traccar.view.login.Register' ], + init: function() { + this.lookupReference('registerButton').setDisabled( + !Traccar.getApplication().getServer().get('registration') + ); + }, + onAfterRender: function(field) { field.focus(); }, -- cgit v1.2.3