From 1d48ba0a5a4f347321f7f46cd0fe317e3c87d3df Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Sun, 24 Mar 2024 23:46:21 +0200 Subject: screenshot and reset stream buttons are always active --- web/kvm/index.html | 4 ++-- web/kvm/navbar-system.pug | 4 ++-- web/share/js/kvm/stream.js | 6 +----- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/web/kvm/index.html b/web/kvm/index.html index a8ccca6b..9fb79a28 100644 --- a/web/kvm/index.html +++ b/web/kvm/index.html @@ -253,8 +253,8 @@
- - + +

diff --git a/web/kvm/navbar-system.pug b/web/kvm/navbar-system.pug index 85cf6b24..9c0c8014 100644 --- a/web/kvm/navbar-system.pug +++ b/web/kvm/navbar-system.pug @@ -69,8 +69,8 @@ li(id="system-dropdown" class="right") hr div(class="buttons buttons-row") button(data-force-hide-menu data-show-window="stream-window" class="row33") • Show stream - button(disabled data-force-hide-menu id="stream-screenshot-button" class="row33") • Screenshot - button(disabled id="stream-reset-button" class="row33") Reset stream + button(data-force-hide-menu id="stream-screenshot-button" class="row33") • Screenshot + button(id="stream-reset-button" class="row33") Reset stream div(id="hid-outputs" class="feature-disabled") hr table(class="kv") diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js index 392b54a0..202379d7 100644 --- a/web/share/js/kvm/stream.js +++ b/web/share/js/kvm/stream.js @@ -216,15 +216,11 @@ export function Streamer() { var __setActive = function() { $("stream-led").className = "led-green"; $("stream-led").title = "Stream is active"; - tools.el.setEnabled($("stream-screenshot-button"), true); - tools.el.setEnabled($("stream-reset-button"), true); }; var __setInactive = function() { $("stream-led").className = "led-gray"; $("stream-led").title = "Stream inactive"; - tools.el.setEnabled($("stream-screenshot-button"), false); - tools.el.setEnabled($("stream-reset-button"), false); }; var __setInfo = function(is_active, online, text) { @@ -288,7 +284,7 @@ export function Streamer() { var __clickScreenshotButton = function() { let el = document.createElement("a"); - el.href = "/api/streamer/snapshot?allow_offline=1"; + el.href = "/api/streamer/snapshot"; el.target = "_blank"; document.body.appendChild(el); el.click(); -- cgit v1.2.3