diff --git a/src_assets/common/assets/web/pin.html b/src_assets/common/assets/web/pin.html index 24bee6aca5a..1bf1c583917 100644 --- a/src_assets/common/assets/web/pin.html +++ b/src_assets/common/assets/web/pin.html @@ -22,19 +22,6 @@

PIN Pairing

-
-
-
-

Paired Clients

-
Refresh
-
-
-
Success! Click 'Apply' to restart Sunshine and apply changes. This will terminate any running sessions.
- -
- -
-
@@ -68,39 +55,6 @@

Paired Clients

"#status" ).innerHTML = ``; } - refreshClients(); }); }); - - const clientList = document.querySelector("#client-list"); - - function refreshClients() { - fetch("/api/clients/list") - .then((response) => response.json()) - .then((response) => { - clientList.innerHTML = ""; - if (response.status === 'true' && response.named_certs && response.named_certs.length) { - for (const named_cert of response.named_certs) { - clientList.innerHTML += `
${named_cert.name != "" ? named_cert.name : "Unknown"}
Remove
`; - } - } else { - clientList.innerHTML = `

There are no 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.setProperty('display', 'flex', 'important'); - refreshClients(); - }); - }); - } - }); - } - refreshClients(); - - document.querySelector("#client-refresh").addEventListener("click", refreshClients); - document.querySelector("#apply-alert .apply").addEventListener("click", () => { - document.querySelector("#apply-alert").style.setProperty('display', 'none', 'important'); - fetch("/api/restart", { method: "POST" }); - }); \ No newline at end of file diff --git a/src_assets/common/assets/web/troubleshooting.html b/src_assets/common/assets/web/troubleshooting.html index 6ad8afc59da..50e7f54d257 100644 --- a/src_assets/common/assets/web/troubleshooting.html +++ b/src_assets/common/assets/web/troubleshooting.html @@ -82,23 +82,38 @@

Restart Sunshine

-
+
-

Unpair All Clients

-
-

Remove all your paired devices

-
- Unpair Successful! -
-
- Error while unpairing -
-
- +
+
+

Unpair Clients

+ +
+
+
Success! Click 'Apply' to restart Sunshine and apply changes. This will terminate any running sessions.
+ +
+
+ Unpair Successful! +
+
+ Error while unpairing +
+
+

Remove your paired devices.

+
    +
    +
    {{client.name != "" ? client.name : "Unknown Client"}}
    +
    +
+
    +
    There are no paired clients.
    +
+
@@ -119,7 +134,7 @@

Logs