summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-06-27 00:41:07 +0300
committerDevaev Maxim <[email protected]>2020-06-27 00:41:07 +0300
commitc3feca676abbdbfdebbb259429f7f9ac727c2cc3 (patch)
tree9551429b244f444305a34564267a55eab37d7b4e /web
parentdc32b264de08c451de9133ea0558a14d65ad536b (diff)
hide_kvm_button
Diffstat (limited to 'web')
-rw-r--r--web/share/js/index/main.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/web/share/js/index/main.js b/web/share/js/index/main.js
index 497a4d73..6c315660 100644
--- a/web/share/js/index/main.js
+++ b/web/share/js/index/main.js
@@ -73,7 +73,11 @@ function __loadKvmdInfo() {
$("apps-box").innerHTML = "<ul id=\"apps\"></ul>";
- $("apps").innerHTML += __makeApp(null, "kvm", "share/svg/kvm.svg", "KVM");
+ // Don't use this option, it may be removed in any time
+ let hide_kvm_button = (info.meta !== null && info.meta.web && info.meta.web.hide_kvm_button);
+ if (!hide_kvm_button) {
+ $("apps").innerHTML += __makeApp(null, "kvm", "share/svg/kvm.svg", "KVM");
+ }
for (let app of apps) {
if (app.enabled) {