diff options
author | Georg Ehrke <developer@georgehrke.com> | 2019-09-02 15:18:43 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2019-09-02 15:18:43 +0200 |
commit | 88f6d1c20edf41bf581d973263a3749948ef4f4c (patch) | |
tree | bd554008994fba80047be2486ff377e1ada29240 /apps/dav/js | |
parent | daf89e6b34515222b55bdd6bc32c9001664ac548 (diff) | |
download | nextcloud-server-88f6d1c20edf41bf581d973263a3749948ef4f4c.tar.gz nextcloud-server-88f6d1c20edf41bf581d973263a3749948ef4f4c.zip |
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.js | 9 |
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'); }); + |