bsw@1090: local sure = param.get("sure") bsw@1090: bsw@1090: if sure ~= "yes" then bsw@1090: slot.select("error", function() bsw@1090: ui.tag{ content = _"You need to confirm to deactivate!" } bsw@1090: end) bsw@1090: return false bsw@1090: end bsw@1090: bsw@1090: local id = param.get_id() bsw@1090: local clean = param.get("clean") bsw@1090: bsw@1090: local member = Member:by_id(id) bsw@1090: bsw@1090: member:delete() bsw@1090: bsw@1090: slot.select("notice", function() bsw@1090: ui.tag{ content = _"Member successfully deactivated" } bsw@1090: end )