From 5fdbe1c1996ceb3c34cfb77232814c06dbe0cbd8 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Wed, 17 Jul 2024 23:40:10 +0200 Subject: [PATCH] Admin: Fix icon showing inactive state in multi-URL list + use outline version of toggle-switch when inactive --- public/main/admin/access_urls.php | 2 +- src/CoreBundle/Component/Utils/StateIcon.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/main/admin/access_urls.php b/public/main/admin/access_urls.php index 34ecd301cf..95fee2756e 100644 --- a/public/main/admin/access_urls.php +++ b/public/main/admin/access_urls.php @@ -156,7 +156,7 @@ foreach ($data as $row) { //Status $active = $row['active']; $action = 'unlock'; - $image = StateIcon::ACTIVE; + $image = StateIcon::INACTIVE; if ('1' == $active) { $action = 'lock'; $image = StateIcon::ACTIVE; diff --git a/src/CoreBundle/Component/Utils/StateIcon.php b/src/CoreBundle/Component/Utils/StateIcon.php index 10f984ebf5..6ef74a786e 100644 --- a/src/CoreBundle/Component/Utils/StateIcon.php +++ b/src/CoreBundle/Component/Utils/StateIcon.php @@ -21,7 +21,7 @@ enum StateIcon: string // Active / Visible case ACTIVE = 'toggle-switch'; // Inactive / Invisible - case INACTIVE = 'toggle-switch-off'; + case INACTIVE = 'toggle-switch-off-outline'; // Expired case EXPIRED = 'timer-alert-outline'; // Error