liquid_feedback_frontend
view app/main/admin/_action/member_deactivate.lua @ 1631:d9ccd0d6ef8c
Fix height of card action area
author | bsw |
---|---|
date | Mon Feb 08 14:28:28 2021 +0100 (2021-02-08) |
parents | 5b6082e9bd5c |
children |
line source
1 local sure = param.get("sure")
3 if sure ~= "yes" then
4 slot.select("error", function()
5 ui.tag{ content = _"You need to confirm to deactivate!" }
6 end)
7 return false
8 end
10 local id = param.get_id()
11 local clean = param.get("clean")
13 local member = Member:by_id(id)
15 member:delete()
17 slot.select("notice", function()
18 ui.tag{ content = _"Member successfully deactivated" }
19 end )