diff options
author | Ajay <[email protected]> | 2024-04-04 13:54:47 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2024-04-04 13:54:47 -0400 |
commit | e1d656f43f8b3cfb40e1c521e4103d61db756872 (patch) | |
tree | 2270f91385202b71945662b623cca96b017aa6bf | |
parent | e14b3c76f9a5698aa09ae1f02c77e08077c195ad (diff) | |
download | SponsorBlock-e1d656f43f8b3cfb40e1c521e4103d61db756872.tar.gz SponsorBlock-e1d656f43f8b3cfb40e1c521e4103d61db756872.zip |
Make notice visibility option not appear when notice disabled
-rw-r--r-- | public/options/options.html | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/public/options/options.html b/public/options/options.html index b8746c5d..b9258f33 100644 --- a/public/options/options.html +++ b/public/options/options.html @@ -219,20 +219,22 @@ __MSG_showSkipNotice__ </label> </div> - </div> - - <div data-type="selector" data-sync="noticeVisibilityMode"> - <label class="optionLabel" for="noticeVisibilityMode">__MSG_noticeVisibilityLabel__:</label> - <select id="noticeVisibilityMode" class="selector-element optionsSelector" > - <option value="0">__MSG_noticeVisibilityMode0__</option> - <option value="1">__MSG_noticeVisibilityMode1__</option> - <option value="2">__MSG_noticeVisibilityMode2__</option> - <option value="3">__MSG_noticeVisibilityMode3__</option> - <option value="4">__MSG_noticeVisibilityMode4__</option> - </select> + <div data-type="selector" data-sync="noticeVisibilityMode" data-dependent-on="dontShowNotice"> + <br/> + + <label class="optionLabel" for="noticeVisibilityMode">__MSG_noticeVisibilityLabel__:</label> + + <select id="noticeVisibilityMode" class="selector-element optionsSelector" > + <option value="0">__MSG_noticeVisibilityMode0__</option> + <option value="1">__MSG_noticeVisibilityMode1__</option> + <option value="2">__MSG_noticeVisibilityMode2__</option> + <option value="3">__MSG_noticeVisibilityMode3__</option> + <option value="4">__MSG_noticeVisibilityMode4__</option> + </select> + </div> </div> - + <div data-type="toggle" data-sync="showCategoryGuidelines"> <div class="switch-container"> <label class="switch"> |