diff options
author | Simon Rettberg | 2016-09-19 15:28:08 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-09-19 15:28:08 +0200 |
commit | 7e504c496bbef36a882bc3e22b28147a2e91674d (patch) | |
tree | dff4d502ceedd7b5d961193089ad492a94df83fd /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LoginWindow.java | |
parent | [client] Output debug message if json parsing fails (diff) | |
download | tutor-module-7e504c496bbef36a882bc3e22b28147a2e91674d.tar.gz tutor-module-7e504c496bbef36a882bc3e22b28147a2e91674d.tar.xz tutor-module-7e504c496bbef36a882bc3e22b28147a2e91674d.zip |
[client] Add/fix several weblinks ->
Add FAQ URL to 'About' menu
Add 'Register' button to LoginWindow
Fix registration URL when image publishing fails
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LoginWindow.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LoginWindow.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LoginWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LoginWindow.java index 0c03df89..9e028041 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LoginWindow.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LoginWindow.java @@ -43,6 +43,8 @@ import org.openslx.dozmod.thrift.Session; import org.openslx.dozmod.thrift.ThriftActions; import org.openslx.dozmod.thrift.ThriftError; import org.openslx.dozmod.thrift.cache.OrganizationCache; +import org.openslx.dozmod.util.OpenLinks; +import org.openslx.dozmod.util.OpenLinks.Link; import org.openslx.util.QuickTimer; import org.openslx.util.QuickTimer.Task; @@ -114,6 +116,7 @@ public class LoginWindow extends LoginWindowLayout { if (e.getStateChange() == ItemEvent.SELECTED) { cboOrganization.setEnabled(cboOrganization.getModel().getSize() != 0 && type == LoginType.ECP); loginType = type; + btnOpenRegistration.setEnabled(type == LoginType.ECP); } } }); @@ -180,6 +183,13 @@ public class LoginWindow extends LoginWindowLayout { doLogin(); } }); + + btnOpenRegistration.addActionListener(new ActionListener() { + @Override + public void actionPerformed(ActionEvent e) { + OpenLinks.openWebpage(Link.REGISTER_BWIDM); + } + }); // make enter key activate login pnlLoginForm.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put( |