luci-app-qos_gargoyle: fix luci crash
This commit is contained in:
parent
7b5c79387e
commit
f19e2f3216
@ -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")
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
|
||||
config global 'global'
|
||||
|
||||
config upload 'upload'
|
||||
option default_class 'uclass_2'
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user