From cc8efc81f31a9279b649c515fc2a67b94b0ef525 Mon Sep 17 00:00:00 2001 From: Daniel Teichmann Date: Tue, 22 Mar 2022 12:13:49 +0100 Subject: [PATCH] Rename setting 'sendEventRemindersToSharedGroupMembers' -> 'sendEventRemindersToSharedUsers'. Signed-off-by: Daniel Teichmann --- apps/dav/lib/CalDAV/Reminder/ReminderService.php | 2 +- apps/dav/lib/Settings/CalDAVSettings.php | 2 +- apps/dav/src/settings.js | 4 ++-- apps/dav/src/views/CalDavSettings.spec.js | 10 +++++----- apps/dav/src/views/CalDavSettings.vue | 10 +++++----- .../views/__snapshots__/CalDavSettings.spec.js.snap | 4 ++-- apps/dav/tests/unit/Settings/CalDAVSettingsTest.php | 4 ++-- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/apps/dav/lib/CalDAV/Reminder/ReminderService.php b/apps/dav/lib/CalDAV/Reminder/ReminderService.php index d6901cc4fb03f..0529998656929 100644 --- a/apps/dav/lib/CalDAV/Reminder/ReminderService.php +++ b/apps/dav/lib/CalDAV/Reminder/ReminderService.php @@ -152,7 +152,7 @@ public function processReminders():void { continue; } - if ($this->config->getAppValue('dav', 'sendEventRemindersToSharedGroupMembers', 'yes') === 'no') { + if ($this->config->getAppValue('dav', 'sendEventRemindersToSharedUsers', 'yes') === 'no') { $users = $this->getAllUsersWithWriteAccessToCalendar($reminder['calendar_id']); } else { $users = []; diff --git a/apps/dav/lib/Settings/CalDAVSettings.php b/apps/dav/lib/Settings/CalDAVSettings.php index 6d60b2611e03f..b3825a6a37c1d 100644 --- a/apps/dav/lib/Settings/CalDAVSettings.php +++ b/apps/dav/lib/Settings/CalDAVSettings.php @@ -46,7 +46,7 @@ class CalDAVSettings implements IDelegatedSettings { 'sendInvitations' => 'yes', 'generateBirthdayCalendar' => 'yes', 'sendEventReminders' => 'yes', - 'sendEventRemindersToSharedGroupMembers' => 'yes', + 'sendEventRemindersToSharedUsers' => 'yes', 'sendEventRemindersPush' => 'no', ]; diff --git a/apps/dav/src/settings.js b/apps/dav/src/settings.js index 6744f22ad2301..e518241e7de49 100644 --- a/apps/dav/src/settings.js +++ b/apps/dav/src/settings.js @@ -16,9 +16,9 @@ const CalDavSettingsView = new View({ 'generateBirthdayCalendar' ), sendEventReminders: loadState('dav', 'sendEventReminders'), - sendEventRemindersToSharedGroupMembers: loadState( + sendEventRemindersToSharedUsers: loadState( 'dav', - 'sendEventRemindersToSharedGroupMembers' + 'sendEventRemindersToSharedUsers' ), sendEventRemindersPush: loadState('dav', 'sendEventRemindersPush'), } diff --git a/apps/dav/src/views/CalDavSettings.spec.js b/apps/dav/src/views/CalDavSettings.spec.js index 13abca03d5b94..a6fc829a058b2 100644 --- a/apps/dav/src/views/CalDavSettings.spec.js +++ b/apps/dav/src/views/CalDavSettings.spec.js @@ -45,7 +45,7 @@ describe('CalDavSettings', () => { sendInvitations: true, generateBirthdayCalendar: true, sendEventReminders: true, - sendEventRemindersToSharedGroupMembers: true, + sendEventRemindersToSharedUsers: true, sendEventRemindersPush: true, } }, @@ -67,10 +67,10 @@ describe('CalDavSettings', () => { 'Send notifications for events' ) expect(sendEventReminders).toBeChecked() - const sendEventRemindersToSharedGroupMembers = TLUtils.getByLabelText( + const sendEventRemindersToSharedUsers = TLUtils.getByLabelText( 'Send reminder notifications to calendar sharees as well' ) - expect(sendEventRemindersToSharedGroupMembers).toBeChecked() + expect(sendEventRemindersToSharedUsers).toBeChecked() const sendEventRemindersPush = TLUtils.getByLabelText( 'Enable notifications for events via push' ) @@ -113,7 +113,7 @@ describe('CalDavSettings', () => { 'no' ) - expect(sendEventRemindersToSharedGroupMembers).toBeDisabled() + expect(sendEventRemindersToSharedUsers).toBeDisabled() expect(sendEventRemindersPush).toBeDisabled() OCP.AppConfig.setValue.mockClear() @@ -125,7 +125,7 @@ describe('CalDavSettings', () => { 'yes' ) - expect(sendEventRemindersToSharedGroupMembers).toBeEnabled() + expect(sendEventRemindersToSharedUsers).toBeEnabled() expect(sendEventRemindersPush).toBeEnabled() }) }) diff --git a/apps/dav/src/views/CalDavSettings.vue b/apps/dav/src/views/CalDavSettings.vue index f1d39abee4273..20f6bacdd7a1d 100644 --- a/apps/dav/src/views/CalDavSettings.vue +++ b/apps/dav/src/views/CalDavSettings.vue @@ -58,12 +58,12 @@

- -