Warn without disabling toggle

This commit is contained in:
TwistedUmbrellaX 2024-10-27 04:39:59 -04:00 committed by TwistedUmbrellaX
parent 2653c0a314
commit 9ff8b19ab5

View File

@ -319,7 +319,9 @@
</div> </div>
</div> </div>
<div id="warningMessage" style="color: #721c24; background-color: #f7cf1f; border: 1px solid #f5c6cb; border-radius: 4px; padding: 10px; margin-bottom: 10px">Failed to add skip button to web interface. See <a href="https://github.com/intro-skipper/intro-skipper/wiki/Troubleshooting#skip-button-is-not-visible" target="_blank" rel="noopener noreferrer">troubleshooting guide</a> for the most common issues.</div> <div id="warningMessage" style="color: #721c24; background-color: #f7cf1f; border: 1px solid #f5c6cb; border-radius: 4px; padding: 10px; margin-bottom: 10px">
Failed to add skip button to web interface. See <a href="https://github.com/intro-skipper/intro-skipper/wiki/Troubleshooting#skip-button-is-not-visible" target="_blank" rel="noopener noreferrer">troubleshooting guide</a> for the most common issues.
</div>
<details id="AutoSkipClientList" style="padding-bottom: 1em"> <details id="AutoSkipClientList" style="padding-bottom: 1em">
<summary>Auto Skip Client List</summary> <summary>Auto Skip Client List</summary>
@ -1335,8 +1337,7 @@
} }
if (config["SkipButtonWarning"]) { if (config["SkipButtonWarning"]) {
document.getElementById("SkipButtonContainer").style.display = "none"; document.getElementById("warningMessage").style.display = "unset";
document.getElementById("PersistContainer").style.display = "none";
} else { } else {
document.getElementById("warningMessage").style.display = "none"; document.getElementById("warningMessage").style.display = "none";
} }