More bugfixes on displays and interactions, mainly fixing damage done two commits ago
This commit is contained in:
parent
6c9353d389
commit
1a6f27f2f6
@ -33,7 +33,16 @@ function display_processes:initiate(result)
|
|||||||
and modpol.util.num_pairs(v.config) > 0 then
|
and modpol.util.num_pairs(v.config) > 0 then
|
||||||
table.insert(display_table, "Policies:")
|
table.insert(display_table, "Policies:")
|
||||||
for k2,v2 in pairs(v.config) do
|
for k2,v2 in pairs(v.config) do
|
||||||
input = k2..": "..v2
|
local v2_string = ""
|
||||||
|
if type(v2) ~= "string"
|
||||||
|
and type(v2) ~= "table" then
|
||||||
|
v2_string = tostring(v2)
|
||||||
|
elseif type(v2) == "table" then
|
||||||
|
v2_string = table.concat(v2)
|
||||||
|
else
|
||||||
|
v2_string = "Could not render"
|
||||||
|
end
|
||||||
|
input = k2..": "..v2_string
|
||||||
table.insert(display_table, input)
|
table.insert(display_table, input)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -50,6 +50,7 @@ function modpol.interactions.dashboard(user)
|
|||||||
local all_users = modpol.instance:list_members()
|
local all_users = modpol.instance:list_members()
|
||||||
-- pending list
|
-- pending list
|
||||||
local user_pending_count = 0
|
local user_pending_count = 0
|
||||||
|
local user_pending = {}
|
||||||
for k,v in ipairs(modpol.orgs.array) do
|
for k,v in ipairs(modpol.orgs.array) do
|
||||||
if v.pending and v.pending[user] then
|
if v.pending and v.pending[user] then
|
||||||
if modpol.util.num_pairs(v.pending[user]) ~= 0 then
|
if modpol.util.num_pairs(v.pending[user]) ~= 0 then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user