diff options
author | Devaev Maxim <[email protected]> | 2019-05-10 20:42:02 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-05-10 20:42:02 +0300 |
commit | d1a61de9f17cbcd2a31b0ff118ca8f553e394dcb (patch) | |
tree | 5042155682730fb954551138db10e4b9358f352a | |
parent | 3a4d79423e5f5f289eaea6a2ba426ef3c258f17b (diff) |
hide disabled services
-rw-r--r-- | web/share/js/index/main.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/share/js/index/main.js b/web/share/js/index/main.js index 9b3780aa..1173558c 100644 --- a/web/share/js/index/main.js +++ b/web/share/js/index/main.js @@ -65,7 +65,9 @@ function __loadKvmdInfo() { $("apps").innerHTML += __makeApp(null, "kvm", "share/svg/kvm.svg", "KVM"); for (let app of apps) { - $("apps").innerHTML += __makeApp(null, app.path, app.icon, app.name); + if (app.enabled) { + $("apps").innerHTML += __makeApp(null, app.path, app.icon, app.name); + } } $("apps").innerHTML += __makeApp("logout-button", "#", "share/svg/logout.svg", "Logout"); |