mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 11:37:02 +03:00
Hide settings not affected by skip profile when non-default profile is selected
This commit is contained in:
@@ -80,9 +80,9 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div data-type="react-AdvancedSkipOptionsComponent"></div>
|
<div data-type="react-AdvancedSkipOptionsComponent" class="hide-when-skip-profile"></div>
|
||||||
|
|
||||||
<div data-type="toggle" data-sync="forceChannelCheck">
|
<div data-type="toggle" data-sync="forceChannelCheck" class="hide-when-skip-profile">
|
||||||
<div class="switch-container">
|
<div class="switch-container">
|
||||||
<label class="switch">
|
<label class="switch">
|
||||||
<input id="forceChannelCheck" type="checkbox" checked>
|
<input id="forceChannelCheck" type="checkbox" checked>
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
<div class="small-description">__MSG_whatForceChannelCheck__</div>
|
<div class="small-description">__MSG_whatForceChannelCheck__</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div data-type="toggle" data-sync="showCategoryWithoutPermission">
|
<div data-type="toggle" data-sync="showCategoryWithoutPermission" class="hide-when-skip-profile">
|
||||||
<div class="switch-container">
|
<div class="switch-container">
|
||||||
<label class="switch">
|
<label class="switch">
|
||||||
<input id="showCategoryWithoutPermission" type="checkbox" checked>
|
<input id="showCategoryWithoutPermission" type="checkbox" checked>
|
||||||
|
|||||||
@@ -23,6 +23,12 @@ export function CategoryChooserComponent() {
|
|||||||
|
|
||||||
updateChannelList(setChannelListText, selectedConfigurationID!);
|
updateChannelList(setChannelListText, selectedConfigurationID!);
|
||||||
setSelections(getConfigurationValue<CategorySelection[]>(selectedConfigurationID, "categorySelections"));
|
setSelections(getConfigurationValue<CategorySelection[]>(selectedConfigurationID, "categorySelections"));
|
||||||
|
|
||||||
|
if (selectedConfigurationID === null) {
|
||||||
|
document.querySelectorAll(".hide-when-skip-profile").forEach((e) => e.classList.remove("hidden"));
|
||||||
|
} else {
|
||||||
|
document.querySelectorAll(".hide-when-skip-profile").forEach((e) => e.classList.add("hidden"));
|
||||||
|
}
|
||||||
}, [selectedConfigurationID]);
|
}, [selectedConfigurationID]);
|
||||||
|
|
||||||
const createNewConfig = () => {
|
const createNewConfig = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user