From ac56974e8339649242a9d29d23c617220e8b2a10 Mon Sep 17 00:00:00 2001 From: Lars Date: Fri, 20 Mar 2026 08:26:18 +0100 Subject: [PATCH] fix: make buttons always visible in AdminUserRestrictionsPage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bottom bar changes: - Always visible when user selected (not hidden) - Buttons disabled when no changes (clearer state) - Moved outside inner block to prevent hiding Action column changes: - "↺ Zurück" button always visible per feature - Disabled when no override exists (grayed out) - Consistent button presence improves UX This fixes the issue where buttons were not shown because they were conditionally rendered. Co-Authored-By: Claude Opus 4.6 --- .../src/pages/AdminUserRestrictionsPage.jsx | 73 ++++++++++--------- 1 file changed, 40 insertions(+), 33 deletions(-) diff --git a/frontend/src/pages/AdminUserRestrictionsPage.jsx b/frontend/src/pages/AdminUserRestrictionsPage.jsx index 55cedb6..9364526 100644 --- a/frontend/src/pages/AdminUserRestrictionsPage.jsx +++ b/frontend/src/pages/AdminUserRestrictionsPage.jsx @@ -434,15 +434,19 @@ export default function AdminUserRestrictionsPage() { {/* Action */} - {override && ( - - )} + ) @@ -453,30 +457,6 @@ export default function AdminUserRestrictionsPage() { - {/* Fixed Bottom Bar */} -
- - -
{/* Legend */}
)} + + {/* Fixed Bottom Bar - Always visible when user selected */} + {selectedUser && ( +
+ + +
+ )}
) }