liquid_feedback_frontend
view app/main/admin/_action/member_deactivate.lua @ 1784:294437b78505
Make string transalatable
| author | bsw | 
|---|---|
| date | Tue Oct 19 14:51:43 2021 +0200 (2021-10-19) | 
| 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 )
