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