syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject [syncope] branch master updated: [SYNCOPE-1447] Missing restClient init
Date Mon, 11 Mar 2019 14:56:20 GMT
This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/master by this push:
     new 2bae7c4  [SYNCOPE-1447] Missing restClient init
2bae7c4 is described below

commit 2bae7c4f54afa85ef3c4c151ba1106fc986f26c4
Author: Francesco Chicchiriccò <ilgrosso@apache.org>
AuthorDate: Mon Mar 11 15:55:50 2019 +0100

    [SYNCOPE-1447] Missing restClient init
---
 .../console/panels/ApplicationDirectoryPanel.java      | 18 +++++++-----------
 .../client/console/panels/PrivilegeDirectoryPanel.java |  2 ++
 2 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/ApplicationDirectoryPanel.java
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/ApplicationDirectoryPanel.java
index 5fe68f0..26e209d 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/ApplicationDirectoryPanel.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/ApplicationDirectoryPanel.java
@@ -46,7 +46,6 @@ import org.apache.wicket.PageReference;
 import org.apache.wicket.ajax.AjaxRequestTarget;
 import org.apache.wicket.ajax.markup.html.AjaxLink;
 import org.apache.wicket.authroles.authorization.strategies.role.metadata.MetaDataRoleAuthorizationStrategy;
-import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
 import org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator;
 import org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn;
 import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn;
@@ -88,19 +87,16 @@ public class ApplicationDirectoryPanel extends
         modal.size(Modal.Size.Medium);
         modal.addSubmitButton();
         setFooterVisibility(true);
-        modal.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() {
-
-            private static final long serialVersionUID = 8804221891699487139L;
-
-            @Override
-            public void onClose(final AjaxRequestTarget target) {
-                updateResultTable(target);
-                modal.show(false);
-            }
+        modal.setWindowClosedCallback(target -> {
+            updateResultTable(target);
+            modal.show(false);
         });
 
         privilegeModal.size(Modal.Size.Large);
-        setWindowClosedReloadCallback(privilegeModal);
+        privilegeModal.setWindowClosedCallback(target -> {
+            updateResultTable(target);
+            modal.show(false);
+        });
         addOuterObject(privilegeModal);
 
         AjaxLink<Void> newApplLink = new AjaxLink<Void>("add") {
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/PrivilegeDirectoryPanel.java
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/PrivilegeDirectoryPanel.java
index 8ed357b..438d613 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/PrivilegeDirectoryPanel.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/PrivilegeDirectoryPanel.java
@@ -69,6 +69,8 @@ public class PrivilegeDirectoryPanel extends DirectoryPanel<
         this.baseModal = baseModal;
         this.application = application;
 
+        restClient = new ApplicationRestClient();
+
         disableCheckBoxes();
         enableExitButton();
 


Mime
View raw message