diff options
author | Maxim Devaev <[email protected]> | 2022-11-18 04:42:40 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-11-18 04:42:40 +0300 |
commit | b78a9dd8e1fbb1422552b501abafde052ec1a8eb (patch) | |
tree | cee87c328bf55de2286299c0997921c06f7ad9fa /web/share/js/index | |
parent | 0f4e7361856446a029e950233f532226614cf665 (diff) |
web: ui config
Diffstat (limited to 'web/share/js/index')
-rw-r--r-- | web/share/js/index/main.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/web/share/js/index/main.js b/web/share/js/index/main.js index 7510d133..08e4a364 100644 --- a/web/share/js/index/main.js +++ b/web/share/js/index/main.js @@ -74,7 +74,10 @@ function __loadKvmdInfo() { $("apps-box").innerHTML = "<ul id=\"apps\"></ul>"; // 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); + let hide_kvm_button = ( + (info.meta !== null && info.meta.web && info.meta.web.hide_kvm_button) + || tools.config.getBool("index--hide-kvm-button", false) + ); if (!hide_kvm_button) { $("apps").innerHTML += __makeApp(null, "kvm", "share/svg/kvm.svg", "KVM"); } |