Skip to content

Commit

Permalink
Fixed "restart Sunshine" banner not hiding after clicking "apply"
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderfrangos committed Jan 24, 2024
1 parent ced0122 commit 8c8dfcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src_assets/common/assets/web/pin.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ <h2 class="text-center me-auto">Paired Clients</h2>
for (const unpairOption of clientList.querySelectorAll(".unpair")) {
unpairOption.addEventListener("click", () => {
fetch("/api/clients/unpair-single", { method: "POST", body: JSON.stringify({ uniqueid: unpairOption.dataset.uniqueid }) }).then(() => {
document.querySelector("#apply-alert").style.display = "";
document.querySelector("#apply-alert").style.setProperty('display', 'flex', 'important');
refreshClients();
});
});
Expand All @@ -100,7 +100,7 @@ <h2 class="text-center me-auto">Paired Clients</h2>

document.querySelector("#client-refresh").addEventListener("click", refreshClients);
document.querySelector("#apply-alert .apply").addEventListener("click", () => {
document.querySelector("#apply-alert").style.display = "none!important";
document.querySelector("#apply-alert").style.setProperty('display', 'none', 'important');
fetch("/api/restart", { method: "POST" });
});
</script>

0 comments on commit 8c8dfcf

Please sign in to comment.