gluon-web-node-role: fix node role list
Fixes: 4249d65af7
("treewide: fix luacheck warnings")
Closes: #1851
This commit is contained in:
parent
e3bdfeefa1
commit
a3a8d962fc
@ -18,7 +18,7 @@ s = f:section(Section, nil, translate(
|
|||||||
o = s:option(ListValue, "role", translate("Role"))
|
o = s:option(ListValue, "role", translate("Role"))
|
||||||
o.default = role
|
o.default = role
|
||||||
for _, role_value in ipairs(site.roles.list()) do
|
for _, role_value in ipairs(site.roles.list()) do
|
||||||
o:value(role, site_i18n.translate('gluon-web-node-role:role:' .. role_value))
|
o:value(role_value, site_i18n.translate('gluon-web-node-role:role:' .. role_value))
|
||||||
end
|
end
|
||||||
|
|
||||||
function o:write(data)
|
function o:write(data)
|
||||||
|
Loading…
Reference in New Issue
Block a user