liquid_feedback_frontend
diff app/main/member/_action/update_notify_level.lua @ 1485:2626155efb83
Updated notification settings view for better user experience
| author | bsw |
|---|---|
| date | Wed Oct 31 12:21:44 2018 +0100 (2018-10-31) |
| parents | b04fa071ba05 |
| children |
line diff
1.1 --- a/app/main/member/_action/update_notify_level.lua Mon Oct 29 14:35:37 2018 +0100 1.2 +++ b/app/main/member/_action/update_notify_level.lua Wed Oct 31 12:21:44 2018 +0100 1.3 @@ -1,4 +1,4 @@ 1.4 -local disable_notifications = param.get("disable_notifications") == "true" and true or false 1.5 +local disable_notifications = param.get("enable_notifications") ~= "true" and true or false 1.6 1.7 if app.session.member.disable_notifications ~= disable_notifications then 1.8 IgnoredArea:destroy_by_member_id(app.session.member_id) 1.9 @@ -8,6 +8,7 @@ 1.10 if app.session.member.disable_notifications then 1.11 app.session.member.notification_dow = nil 1.12 app.session.member.notification_hour = nil 1.13 + 1.14 else 1.15 if param.get("digest") == "true" then 1.16 local dow = param.get("notification_dow")