From c74cd42645006217d3c7d0175d94346ec654b0b3 Mon Sep 17 00:00:00 2001 From: anhefti Date: Thu, 21 Jan 2021 15:20:36 +0100 Subject: [PATCH] fixed export settings available also in readonly --- .../sebserver/gui/content/SEBSettingsForm.java | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/content/SEBSettingsForm.java b/src/main/java/ch/ethz/seb/sebserver/gui/content/SEBSettingsForm.java index 071031c4..31081499 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/content/SEBSettingsForm.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/content/SEBSettingsForm.java @@ -239,19 +239,6 @@ public class SEBSettingsForm implements TemplateComposer { .ignoreMoveAwayFromEdit() .publishIf(() -> examConfigGrant.iw() && !readonly) -// .newAction(ActionDefinition.SEA_EXAM_CONFIG_COPY_CONFIG_AS_TEMPLATE) -// .withEntityKey(entityKey) -// .withExec(this.sebExamConfigCreationPopup.configCreationFunction( -// pageContext -// .withAttribute( -// PageContext.AttributeKeys.COPY_AS_TEMPLATE, -// Constants.TRUE_STRING) -// .withAttribute( -// PageContext.AttributeKeys.CREATE_FROM_TEMPLATE, -// Constants.FALSE_STRING))) -// .noEventPropagation() -// .publishIf(examConfigGrant::iw) - .newAction(ActionDefinition.SEB_EXAM_CONFIG_EXPORT_PLAIN_XML) .withEntityKey(entityKey) .withExec(action -> { @@ -263,9 +250,8 @@ public class SEBSettingsForm implements TemplateComposer { return action; }) .noEventPropagation() - .publishIf(() -> examConfigGrant.iw() && !readonly) + .publishIf(() -> examConfigGrant.iw()) - // TODO shall this got to settings form? .newAction(ActionDefinition.SEB_EXAM_CONFIG_IMPORT_TO_EXISTING_CONFIG) .withEntityKey(entityKey) .withExec(this.sebExamConfigImportPopup.importFunction(false))