From 8c8dfcff9aa0963565e0944105ed0c828718df09 Mon Sep 17 00:00:00 2001
From: Xander Frangos <33106561+xanderfrangos@users.noreply.github.com>
Date: Wed, 24 Jan 2024 15:23:40 -0500
Subject: [PATCH] Fixed "restart Sunshine" banner not hiding after clicking
"apply"
---
src_assets/common/assets/web/pin.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src_assets/common/assets/web/pin.html b/src_assets/common/assets/web/pin.html
index 1bb3091b9e6..24bee6aca5a 100644
--- a/src_assets/common/assets/web/pin.html
+++ b/src_assets/common/assets/web/pin.html
@@ -89,7 +89,7 @@
Paired Clients
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();
});
});
@@ -100,7 +100,7 @@ Paired Clients
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" });
});
\ No newline at end of file