diff options
author | Jonathan Bauer | 2016-08-17 15:02:51 +0200 |
---|---|---|
committer | Jonathan Bauer | 2016-08-17 15:02:51 +0200 |
commit | 69dbf28b8eedf7e0824cc85ef7122f593678f6dc (patch) | |
tree | aaa66aec89120642e1af6c464bfd69e6be408d43 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard | |
parent | Merge branch 'v1.1' of git.openslx.org:openslx-ng/tutor-module into v1.1 (diff) | |
download | tutor-module-69dbf28b8eedf7e0824cc85ef7122f593678f6dc.tar.gz tutor-module-69dbf28b8eedf7e0824cc85ef7122f593678f6dc.tar.xz tutor-module-69dbf28b8eedf7e0824cc85ef7122f593678f6dc.zip |
[client] re-enable advanced and restrictions tabs based on API version
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureOptionsPage.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureOptionsPage.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureOptionsPage.java index cc7c802f..bbc2fedb 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureOptionsPage.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureOptionsPage.java @@ -11,6 +11,7 @@ import org.openslx.dozmod.gui.window.LectureAdvancedSettingsWindow; import org.openslx.dozmod.gui.wizard.Wizard; import org.openslx.dozmod.gui.wizard.layout.LectureOptionsPageLayout; import org.openslx.dozmod.state.LectureWizardState; +import org.openslx.dozmod.thrift.Session; @SuppressWarnings("serial") public class LectureOptionsPage extends LectureOptionsPageLayout { @@ -39,11 +40,12 @@ public class LectureOptionsPage extends LectureOptionsPageLayout { } } }); - // TODO Temporarily disabled until implemented - chkIsExam.setEnabled(false); - chkInternetEnabled.setEnabled(false); - btnAdvanced.setEnabled(false); - chkUsbEnabled.setEnabled(false); + if (Session.isNetrulesSupported()) { + chkIsExam.setEnabled(false); + chkInternetEnabled.setEnabled(false); + chkUsbEnabled.setEnabled(false); + btnAdvanced.setEnabled(false); + } } @Override |