luci-app-sqm: fix JS error if service is disabled 5101/head
authorDirk Brenken <dev@brenken.org>
Sat, 5 Jun 2021 07:43:46 +0000 (09:43 +0200)
committerDirk Brenken <dev@brenken.org>
Wed, 9 Jun 2021 20:36:32 +0000 (22:36 +0200)
commite76d9cc7673ffbebd8887bcfc14542c1269288e0
tree0d5a93ed8aeacb5d73fab3b582ef06142512a1dc
parent1bfeec69948c4743ec61f0778919f14643844bd5
luci-app-sqm: fix JS error if service is disabled

* fix a 'resource not found error' if the sqm service has been disabled
  and the dir '/var/run/sqm/available_qdiscs' not exist
* inform the user about this issue and provide a button
  to enable & start the service

Signed-off-by: Dirk Brenken <dev@brenken.org>
applications/luci-app-sqm/htdocs/luci-static/resources/view/network/sqm.js
applications/luci-app-sqm/root/usr/share/rpcd/acl.d/luci-app-sqm.json