summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-03-24 23:46:21 +0200
committerMaxim Devaev <[email protected]>2024-03-24 23:46:21 +0200
commit1d48ba0a5a4f347321f7f46cd0fe317e3c87d3df (patch)
tree859646496a3e52c346c079eb16acdf7ef0a657ad
parent611a138b423c1d9a95dce67da91dcf8188bd3ef5 (diff)
screenshot and reset stream buttons are always active
-rw-r--r--web/kvm/index.html4
-rw-r--r--web/kvm/navbar-system.pug4
-rw-r--r--web/share/js/kvm/stream.js6
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 @@
<hr>
<div class="buttons buttons-row">
<button class="row33" data-force-hide-menu data-show-window="stream-window">&bull; Show stream</button>
- <button class="row33" disabled data-force-hide-menu id="stream-screenshot-button">&bull; Screenshot</button>
- <button class="row33" disabled id="stream-reset-button">Reset stream</button>
+ <button class="row33" data-force-hide-menu id="stream-screenshot-button">&bull; Screenshot</button>
+ <button class="row33" id="stream-reset-button">Reset stream</button>
</div>
<div class="feature-disabled" id="hid-outputs">
<hr>
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") &bull; Show stream
- button(disabled data-force-hide-menu id="stream-screenshot-button" class="row33") &bull; Screenshot
- button(disabled id="stream-reset-button" class="row33") Reset stream
+ button(data-force-hide-menu id="stream-screenshot-button" class="row33") &bull; 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();