diff options
Diffstat (limited to 'src/org/traccar/web/client/view/LoginDialog.java')
-rw-r--r-- | src/org/traccar/web/client/view/LoginDialog.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/org/traccar/web/client/view/LoginDialog.java b/src/org/traccar/web/client/view/LoginDialog.java index e09da48d..59b46239 100644 --- a/src/org/traccar/web/client/view/LoginDialog.java +++ b/src/org/traccar/web/client/view/LoginDialog.java @@ -15,12 +15,15 @@ */ package org.traccar.web.client.view; +import org.traccar.web.client.ApplicationContext; + import com.google.gwt.core.client.GWT; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.uibinder.client.UiHandler; import com.google.gwt.user.client.ui.Widget; import com.sencha.gxt.widget.core.client.Window; +import com.sencha.gxt.widget.core.client.button.TextButton; import com.sencha.gxt.widget.core.client.event.SelectEvent; import com.sencha.gxt.widget.core.client.form.PasswordField; import com.sencha.gxt.widget.core.client.form.TextField; @@ -48,9 +51,16 @@ public class LoginDialog { @UiField PasswordField password; + @UiField + TextButton registerButton; + public LoginDialog(LoginHandler loginHandler) { this.loginHandler = loginHandler; uiBinder.createAndBindUi(this); + + if (ApplicationContext.getInstance().getApplicationSettings().getRegistrationEnabled()) { + registerButton.enable(); + } } public void show() { |