From 0d02fdb34fe24da35a149a34b19f27aa416b0569 Mon Sep 17 00:00:00 2001 From: uhensler <urs.hensler@frentix.com> Date: Mon, 7 Oct 2019 09:01:27 +0200 Subject: [PATCH] OO-4285: Move the role switch button to the right side of the toolbar --- .../olat/repository/ui/RepositoryEntryRuntimeController.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/olat/repository/ui/RepositoryEntryRuntimeController.java b/src/main/java/org/olat/repository/ui/RepositoryEntryRuntimeController.java index edc4087f169..2908600995d 100644 --- a/src/main/java/org/olat/repository/ui/RepositoryEntryRuntimeController.java +++ b/src/main/java/org/olat/repository/ui/RepositoryEntryRuntimeController.java @@ -325,6 +325,7 @@ public class RepositoryEntryRuntimeController extends MainLayoutBasicController tools.setElementCssClass("o_sel_repository_tools"); tools.setIconCSS("o_icon o_icon_tools"); + initRole(); initToolbar(tools); if(tools.size() > 0) { @@ -339,8 +340,6 @@ public class RepositoryEntryRuntimeController extends MainLayoutBasicController toolbarPanel.addTool(status, Align.left, false); } - initRole(); - toolbarPanel.setDirty(true); } @@ -409,7 +408,7 @@ public class RepositoryEntryRuntimeController extends MainLayoutBasicController rolesDropdown.addComponent(ownerLink); } if (rolesDropdown.size() > 0) { - toolbarPanel.addTool(rolesDropdown, Align.left); + toolbarPanel.addTool(rolesDropdown, Align.right); } } -- GitLab