fix toggle logic and cursors
| @@ -120,6 +120,14 @@ | ||
| 120 | 120 | flex-wrap: wrap; |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | +.world_entry .inline-drawer-header { | |
| 124 | + cursor: initial; | |
| 125 | +} | |
| 126 | + | |
| 127 | +.world_entry .killSwitch { | |
| 128 | + cursor: pointer; | |
| 129 | +} | |
| 130 | + | |
| 123 | 131 | .world_entry_form_control input[type=button] { |
| 124 | 132 | cursor: pointer; |
| 125 | 133 | } |
| @@ -5302,7 +5302,7 @@ | ||
| 5302 | 5302 | <span class="drag-handle">☰</span> |
| 5303 | 5303 | <div class="gap5px world_entry_thin_controls wide100p alignitemscenter"> |
| 5304 | 5304 | <div class="inline-drawer-toggle fa-fw fa-solid fa-circle-chevron-down inline-drawer-icon down"></div> |
| 5305 | 5305 | <div class="fa-solid fa-toggle-on killSwitch" name="entryKillSwitch"></div> |
| 5306 | 5306 | <div class="flex-container alignitemscenter wide100p"> |
| 5307 | 5307 | |
| 5308 | 5308 | <div class="WIEntryTitleAndStatus flex-container flex1 alignitemscenter"> |
| @@ -2916,10 +2916,9 @@ async function getWorldEntry(name, data, entry) { | ||
| 2916 | 2916 | const entryKillSwitch = template.find('div[name="entryKillSwitch"]'); |
| 2917 | 2917 | entryKillSwitch.data('uid', entry.uid); |
| 2918 | 2918 | entryKillSwitch.on('click', async function (event) { |
| 2919 | - event.stopPropagation(); | |
| 2920 | 2919 | const uid = entry.uid; |
| 2921 | 2920 | data.entries[uid].disable = !data.entries[uid].disable; |
| 2922 | 2921 | let isActive = !data.entries[uid].disable; |
| 2923 | 2922 | setWIOriginalDataValue(data, uid, 'enabled', isActive); |
| 2924 | 2923 | if (isActive) { |
| 2925 | 2924 | template.removeClass('disabledWIEntry'); |