Removed processes from main dashboards; processes are now org-based

This commit is contained in:
Nathan Schneider 2021-05-13 00:46:37 -06:00
parent fe26d5322d
commit c1475e9035
2 changed files with 0 additions and 5 deletions

View File

@ -19,8 +19,6 @@ function modpol.dashboard(user)
-- Org status
output = output .. "Orgs:\n" ..
table.concat(modpol.orgs.list_all(),"\n")
-- Process status (ongoing processes)
output = output .. "\nProcesses:\n" .. table.concat(modpol.list_processes(),"\n")
-- Command list (should be redone to be org-specific)
output = output .. "\nCommand list:\n"
for key,value in pairs(modpol) do

View File

@ -53,7 +53,6 @@ function modpol.interactions.dashboard(user)
local all_orgs = modpol.orgs.list_all()
local user_orgs = modpol.orgs.user_orgs(user)
local all_users = modpol.list_users()
local all_processes = modpol.list_processes()
-- set up formspec
local formspec = {
"formspec_version[4]",
@ -65,8 +64,6 @@ function modpol.interactions.dashboard(user)
"dropdown[2,2.5;5,0.8;user_orgs;"..formspec_list(user_orgs)..";;]",
"label[0.5,4;All users:]",
"dropdown[2,3.5;5,0.8;all_users;"..formspec_list(all_users)..";;]",
"label[0.5,5;Processes:]",
"dropdown[2,4.5;5,0.8;processes;"..formspec_list(all_processess)..";;]",
"button[0.5,7;1,0.8;test_poll;Test poll]",
"button[2,7;1,0.8;add_org;Add org]",
"button[3.5,7;1.5,0.8;remove_org;Remove org]",