You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2017/07/11 14:14:16 UTC
[2/2] syncope git commit: Enable 'rightType' dropdown only if 'type'
option is selected - Admin Console - SYNCOPE-1140 - This closes #51
Enable 'rightType' dropdown only if 'type' option is selected - Admin Console - SYNCOPE-1140 - This closes #51
Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/a7b54fa7
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/a7b54fa7
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/a7b54fa7
Branch: refs/heads/master
Commit: a7b54fa78606005a469f98758199f82212bb41bc
Parents: de9e202
Author: Matteo Alessandroni <ma...@tirasa.net>
Authored: Tue Jul 11 15:44:57 2017 +0200
Committer: Francesco Chicchiriccò <il...@apache.org>
Committed: Tue Jul 11 16:13:44 2017 +0200
----------------------------------------------------------------------
.../apache/syncope/client/console/wizards/any/Relationships.java | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/syncope/blob/a7b54fa7/client/console/src/main/java/org/apache/syncope/client/console/wizards/any/Relationships.java
----------------------------------------------------------------------
diff --git a/client/console/src/main/java/org/apache/syncope/client/console/wizards/any/Relationships.java b/client/console/src/main/java/org/apache/syncope/client/console/wizards/any/Relationships.java
index da08b7f..c17c7ee 100644
--- a/client/console/src/main/java/org/apache/syncope/client/console/wizards/any/Relationships.java
+++ b/client/console/src/main/java/org/apache/syncope/client/console/wizards/any/Relationships.java
@@ -331,10 +331,14 @@ public class Relationships extends WizardStep {
Fragment emptyFragment = new Fragment("searchPanel", "emptyFragment", Specification.this);
container.addOrReplace(emptyFragment.setRenderBodyOnly(true));
rightType.setModelObject(null);
+ // enable "rightType" dropdown only if "type" option is selected - SYNCOPE-1140
+ rightType.setEnabled(type.getModelObject() != null && !type.getModelObject().isEmpty());
target.add(rightType);
target.add(container);
}
});
+ // enable "rightType" dropdown only if "type" option is selected - SYNCOPE-1140
+ rightType.setEnabled(Boolean.FALSE);
rightType.getField().add(new IndicatorAjaxFormComponentUpdatingBehavior(Constants.ON_CHANGE) {