luci-app-qos_gargoyle: fix luci crash

This commit is contained in:
ElonH 2020-02-27 12:35:14 +08:00
parent 7b5c79387e
commit f19e2f3216
No known key found for this signature in database
GPG Key ID: 5BCDD7F78A258D4C
2 changed files with 4 additions and 2 deletions

View File

@ -33,10 +33,10 @@ m = Map(qos_gargoyle, translate("Gargoyle QoS"),
translate("Quality of Service (QoS) provides a way to control how available bandwidth is "
.. "allocated."))
s = m:section(SimpleSection, translate("Global Settings"))
s = m:section(TypedSection, 'global', translate("Global Settings"))
s.anonymous = true
o = s:option(Button, "_switch", nil, translate("QoS Switch"))
o = s:option(Button, "", translate("QoS Switch"))
o.render = function(self, section, scope)
if qos_enabled() then
self.title = translate("Disable QoS")

View File

@ -1,4 +1,6 @@
config global 'global'
config upload 'upload'
option default_class 'uclass_2'