Skip to content

Commit

Permalink
For #649 - hide "register" button instead of graying it out
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalidze committed May 18, 2016
1 parent 5c57e68 commit 339397f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/traccar/web/client/view/LoginDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public LoginDialog(LoginHandler loginHandler) {
uiBinder.createAndBindUi(this);

if (ApplicationContext.getInstance().getApplicationSettings().getRegistrationEnabled()) {
registerButton.enable();
registerButton.setVisible(true);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<button:TextButton ui:field="loginButton" text="{i18n.login}" />
</gxt:button>
<gxt:button>
<button:TextButton ui:field="registerButton" text="{i18n.register}" enabled="false" />
<button:TextButton ui:field="registerButton" text="{i18n.register}" visible="false" />
</gxt:button>
</gxt:Window>

Expand Down

0 comments on commit 339397f

Please sign in to comment.