Admin: Fix icon showing inactive state in multi-URL list + use outline version of toggle-switch when inactive

pull/5671/head
Yannick Warnier 1 year ago
parent 234c7d8a4c
commit 5fdbe1c199
  1. 2
      public/main/admin/access_urls.php
  2. 2
      src/CoreBundle/Component/Utils/StateIcon.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;

@ -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

Loading…
Cancel
Save