Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps/dav/js
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2019-09-02 16:18:43 +0300
committerGeorg Ehrke <developer@georgehrke.com>2019-09-02 16:18:43 +0300
commit88f6d1c20edf41bf581d973263a3749948ef4f4c (patch)
treebd554008994fba80047be2486ff377e1ada29240 /apps/dav/js
parentdaf89e6b34515222b55bdd6bc32c9001664ac548 (diff)
Make push notifications for calendar reminders opt-in
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/js')
-rw-r--r--apps/dav/js/settings-admin-caldav.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/dav/js/settings-admin-caldav.js b/apps/dav/js/settings-admin-caldav.js
index ad30ba6ad37..ba85df1e89a 100644
--- a/apps/dav/js/settings-admin-caldav.js
+++ b/apps/dav/js/settings-admin-caldav.js
@@ -41,4 +41,13 @@ $('#caldavSendRemindersNotifications').change(function() {
var val = $(this)[0].checked;
OCP.AppConfig.setValue('dav', 'sendEventReminders', val ? 'yes' : 'no');
+
+ $('#caldavSendRemindersNotificationsPush').prop('disabled', !val)
+});
+
+$('#caldavSendRemindersNotificationsPush').change(function() {
+ var val = $(this)[0].checked;
+
+ OCP.AppConfig.setValue('dav', 'sendEventRemindersPush', val ? 'yes' : 'no');
});
+