From d767b84a27b6864897bbfbd8c9250550975c5d45 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 25 Dec 2017 12:34:28 +0300 Subject: email notifications settings --- juick-www/src/main/java/com/juick/www/controllers/Settings.java | 8 +++----- juick-www/src/main/webapp/WEB-INF/views/settings_main.html | 9 +-------- 2 files changed, 4 insertions(+), 13 deletions(-) (limited to 'juick-www') diff --git a/juick-www/src/main/java/com/juick/www/controllers/Settings.java b/juick-www/src/main/java/com/juick/www/controllers/Settings.java index 64775aec..a2459654 100644 --- a/juick-www/src/main/java/com/juick/www/controllers/Settings.java +++ b/juick-www/src/main/java/com/juick/www/controllers/Settings.java @@ -214,11 +214,9 @@ public class Settings { } break; case "email-subscr": - if (emailService.setSubscriptionHour(visitor.getUid(), request.getParameter("account"), - request.getParameter("time"))) { - result = String.format("

Saved! Will send to %s at %s:00 GMT." + - "

Back

", request.getParameter("account"), - request.getParameter("time")); + if (emailService.setNotificationsEmail(visitor.getUid(), request.getParameter("account"))) { + result = String.format("

Saved! Will send notifications to %s." + + "

Back

", request.getParameter("account")); } else { result = "

Disabled.

Back

"; } diff --git a/juick-www/src/main/webapp/WEB-INF/views/settings_main.html b/juick-www/src/main/webapp/WEB-INF/views/settings_main.html index 26539a69..dddf63bb 100644 --- a/juick-www/src/main/webapp/WEB-INF/views/settings_main.html +++ b/juick-www/src/main/webapp/WEB-INF/views/settings_main.html @@ -84,7 +84,7 @@ {% if emails is not empty %}
-

You can receive all your subscriptions by email:
+

You can receive notifications to email:
Sent to every day at

-- cgit v1.2.3