Repository: syncope Updated Branches: refs/heads/master 37c709727 -> 5e83b3787
[SYNCOPE-1230] Fix toggle reopening after single task execution deletion Project: http://git-wip-us.apache.org/repos/asf/syncope/repo Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/5e83b378 Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/5e83b378 Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/5e83b378 Branch: refs/heads/master Commit: 5e83b3787c374893ccbe5ab8dab30b450d2a2a42 Parents: 37c7097 Author: skylark17 <[email protected]> Authored: Wed Nov 15 15:01:39 2017 +0100 Committer: skylark17 <[email protected]> Committed: Wed Nov 15 15:02:24 2017 +0100 ---------------------------------------------------------------------- .../syncope/client/console/tasks/ExecutionsDirectoryPanel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/syncope/blob/5e83b378/client/console/src/main/java/org/apache/syncope/client/console/tasks/ExecutionsDirectoryPanel.java ---------------------------------------------------------------------- diff --git a/client/console/src/main/java/org/apache/syncope/client/console/tasks/ExecutionsDirectoryPanel.java b/client/console/src/main/java/org/apache/syncope/client/console/tasks/ExecutionsDirectoryPanel.java index 3e26514..e264bff 100644 --- a/client/console/src/main/java/org/apache/syncope/client/console/tasks/ExecutionsDirectoryPanel.java +++ b/client/console/src/main/java/org/apache/syncope/client/console/tasks/ExecutionsDirectoryPanel.java @@ -129,15 +129,15 @@ public abstract class ExecutionsDirectoryPanel @Override public void onClick(final AjaxRequestTarget target, final ExecTO ignore) { + ExecutionsDirectoryPanel.this.getTogglePanel().close(target); try { restClient.deleteExecution(taskExecutionTO.getKey()); SyncopeConsoleSession.get().info(getString(Constants.OPERATION_SUCCEEDED)); + target.add(container); } catch (SyncopeClientException scce) { SyncopeConsoleSession.get().error(scce.getMessage()); } - target.add(ExecutionsDirectoryPanel.this); ((BasePage) pageRef.getPage()).getNotificationPanel().refresh(target); - ExecutionsDirectoryPanel.this.getTogglePanel().close(target); } }, ActionLink.ActionType.DELETE, StandardEntitlement.TASK_DELETE, true);
