From 7f91f749dbd2e38a692f7fd4923c8dd5dadd57c8 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Mon, 6 Jul 2020 21:01:22 +0200 Subject: fix typos and brocken 'use-mandates' checkbox visability --- ...stractServiceProviderSpecificGUIFormBuilderConfiguration.java | 2 +- .../egovernment/moa/id/auth/frontend/utils/FormBuildUtils.java | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'id/server/moa-id-frontend-resources') diff --git a/id/server/moa-id-frontend-resources/src/main/java/at/gv/egovernment/moa/id/auth/frontend/builder/AbstractServiceProviderSpecificGUIFormBuilderConfiguration.java b/id/server/moa-id-frontend-resources/src/main/java/at/gv/egovernment/moa/id/auth/frontend/builder/AbstractServiceProviderSpecificGUIFormBuilderConfiguration.java index 23b8dcd84..b13e29137 100644 --- a/id/server/moa-id-frontend-resources/src/main/java/at/gv/egovernment/moa/id/auth/frontend/builder/AbstractServiceProviderSpecificGUIFormBuilderConfiguration.java +++ b/id/server/moa-id-frontend-resources/src/main/java/at/gv/egovernment/moa/id/auth/frontend/builder/AbstractServiceProviderSpecificGUIFormBuilderConfiguration.java @@ -162,7 +162,7 @@ public abstract class AbstractServiceProviderSpecificGUIFormBuilderConfiguration } else { setViewParameter(null, PARAM_COUNTRYLIST, ""); - setViewParameter(null, PARAM_EIDAS_VISIBLE, FormBuildUtils.TEMPLATEVISIBLE); + setViewParameter(null, PARAM_EIDAS_VISIBLE, FormBuildUtils.TEMPLATEUNVISIBLE); } diff --git a/id/server/moa-id-frontend-resources/src/main/java/at/gv/egovernment/moa/id/auth/frontend/utils/FormBuildUtils.java b/id/server/moa-id-frontend-resources/src/main/java/at/gv/egovernment/moa/id/auth/frontend/utils/FormBuildUtils.java index 8e4e7e5b3..3bba17b30 100644 --- a/id/server/moa-id-frontend-resources/src/main/java/at/gv/egovernment/moa/id/auth/frontend/utils/FormBuildUtils.java +++ b/id/server/moa-id-frontend-resources/src/main/java/at/gv/egovernment/moa/id/auth/frontend/utils/FormBuildUtils.java @@ -50,7 +50,8 @@ public class FormBuildUtils { private static String PARAM_MANDATEVISIBLE = "MANDATEVISIBLE"; private static String PARAM_MANDATECHECKED = "MANDATECHECKED"; - public static final String TEMPLATEVISIBLE = " unvisible"; + public static final String TEMPLATEVISIBLE = " visible"; + public static final String TEMPLATEUNVISIBLE = " unvisible"; public static final String TEMPLATEDISABLED = "disabled=\"true\""; public static final String TEMPLATECHECKED = "checked=\"true\""; public static final String TEMPLATE_ARIACHECKED = "aria-checked="; @@ -79,9 +80,9 @@ public class FormBuildUtils { public static void customiceLayoutBKUSelection(Map params, IOAAuthParameters oaParam) { if (oaParam.isShowMandateCheckBox()) - params.put(PARAM_MANDATEVISIBLE, ""); - else params.put(PARAM_MANDATEVISIBLE, TEMPLATEVISIBLE); + else + params.put(PARAM_MANDATEVISIBLE, TEMPLATEUNVISIBLE); if (oaParam.isOnlyMandateAllowed()) { params.put(PARAM_MANDATECHECKED, TEMPLATECHECKED + " " + @@ -117,7 +118,7 @@ public class FormBuildUtils { * @return */ public static void defaultLayoutBKUSelection(Map params) { - params.put(PARAM_MANDATEVISIBLE, TEMPLATEVISIBLE); + params.put(PARAM_MANDATEVISIBLE, TEMPLATEUNVISIBLE); params.put(PARAM_MANDATECHECKED, TEMPLATE_ARIACHECKED + "\"false\""); params.putAll(getDefaultMap()); -- cgit v1.2.3