Added modal to reset stats button

Implements #4618
This commit is contained in:
Matteo Biscosi 2021-03-04 12:38:22 +01:00
parent dd9ed3958e
commit 6ba47ad0c0
4 changed files with 81 additions and 4 deletions

View file

@ -21,7 +21,7 @@ local res = { ["status"] = "ok" }
local function reset_stats(ifids)
interface.select(ifids)
if haveAdminPrivileges() then
if isAdministrator() then
if action == "reset_drops" then
interface.resetCounters(true --[[ reset only drops --]])
elseif action == "reset_all" then