mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 16:49:58 +00:00
Fix whitelist item expando behaviour
This commit is contained in:
@@ -337,9 +337,13 @@
|
||||
"message": "Remove",
|
||||
"description": "Tooltip text for whitelist item's remove button."
|
||||
},
|
||||
"optionsSiteWhitelistExpandItem": {
|
||||
"optionsSiteWhitelistItemShowOptions": {
|
||||
"message": "Show options",
|
||||
"description": "Tooltip text for whitelist item's expand button."
|
||||
"description": "Tooltip text for whitelist item's show options button."
|
||||
},
|
||||
"optionsSiteWhitelistItemHideOptions": {
|
||||
"message": "Hide options",
|
||||
"description": "Tooltip text for whitelist item's hide options button."
|
||||
},
|
||||
"optionsSiteWhitelistInvalidDuplicatePattern": {
|
||||
"message": "Match pattern already exists!",
|
||||
|
||||
@@ -111,6 +111,9 @@
|
||||
isEditing = false;
|
||||
}
|
||||
|
||||
expandedItemIndices.delete(index);
|
||||
expandedItemIndices = expandedItemIndices;
|
||||
|
||||
items.splice(index, 1);
|
||||
items = items;
|
||||
}
|
||||
@@ -184,7 +187,11 @@
|
||||
<button
|
||||
type="button"
|
||||
class="whitelist__expand-button ghost"
|
||||
title={_("optionsSiteWhitelistExpandItem")}
|
||||
title={_(
|
||||
isItemExpanded
|
||||
? "optionsSiteWhitelistItemHideOptions"
|
||||
: "optionsSiteWhitelistItemShowOptions"
|
||||
)}
|
||||
on:click={() => {
|
||||
// Toggle expanded state
|
||||
if (isItemExpanded) {
|
||||
|
||||
Reference in New Issue
Block a user