summaryrefslogtreecommitdiffstats
path: root/apps/dav/src
diff options
context:
space:
mode:
authorDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2022-02-24 14:17:43 +0100
committerDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2022-03-21 13:02:46 +0100
commit73a7ced1fd8cb5c7a0ee74a15890800742d1e455 (patch)
treea292d5929a0f32a187bd048d756a21fe1cc99434 /apps/dav/src
parent84ae0703a3b74c5ce616c7ca690fedebd3a0d3ab (diff)
downloadnextcloud-server-73a7ced1fd8cb5c7a0ee74a15890800742d1e455.tar.gz
nextcloud-server-73a7ced1fd8cb5c7a0ee74a15890800742d1e455.zip
Fix #31303: Make reminder notification behaviour selectable.
Signed-off-by: Daniel Teichmann <daniel.teichmann@das-netzwerkteam.de>
Diffstat (limited to 'apps/dav/src')
-rw-r--r--apps/dav/src/settings.js4
-rw-r--r--apps/dav/src/views/CalDavSettings.vue29
2 files changed, 32 insertions, 1 deletions
diff --git a/apps/dav/src/settings.js b/apps/dav/src/settings.js
index a81e11c5257..6744f22ad23 100644
--- a/apps/dav/src/settings.js
+++ b/apps/dav/src/settings.js
@@ -16,6 +16,10 @@ const CalDavSettingsView = new View({
'generateBirthdayCalendar'
),
sendEventReminders: loadState('dav', 'sendEventReminders'),
+ sendEventRemindersToSharedGroupMembers: loadState(
+ 'dav',
+ 'sendEventRemindersToSharedGroupMembers'
+ ),
sendEventRemindersPush: loadState('dav', 'sendEventRemindersPush'),
}
},
diff --git a/apps/dav/src/views/CalDavSettings.vue b/apps/dav/src/views/CalDavSettings.vue
index 10af947bd3d..f1d39abee42 100644
--- a/apps/dav/src/views/CalDavSettings.vue
+++ b/apps/dav/src/views/CalDavSettings.vue
@@ -57,7 +57,21 @@
{{ $t('dav', 'Notifications are sent via background jobs, so these must occur often enough.') }}
</em>
</p>
- <p>
+ <p class="indented">
+ <input id="caldavSendEventRemindersToSharedGroupMembers"
+ v-model="sendEventRemindersToSharedGroupMembers"
+ type="checkbox"
+ class="checkbox"
+ :disabled="!sendEventReminders">
+ <label for="caldavSendEventRemindersToSharedGroupMembers">
+ {{ $t('dav', 'Send reminder notifications to calendar sharees as well' ) }}
+ </label>
+ <br>
+ <em>
+ {{ $t('dav', 'Reminders are always sent to organizers and attendees.' ) }}
+ </em>
+ </p>
+ <p class="indented">
<input id="caldavSendEventRemindersPush"
v-model="sendEventRemindersPush"
type="checkbox"
@@ -70,6 +84,12 @@
</div>
</template>
+<style lang="scss" scoped>
+ .indented {
+ padding-left: 28px;
+ }
+</style>
+
<script>
import axios from '@nextcloud/axios'
import { generateUrl } from '@nextcloud/router'
@@ -118,6 +138,13 @@ export default {
sendEventReminders(value) {
OCP.AppConfig.setValue('dav', 'sendEventReminders', value ? 'yes' : 'no')
},
+ sendEventRemindersToSharedGroupMembers(value) {
+ OCP.AppConfig.setValue(
+ 'dav',
+ 'sendEventRemindersToSharedGroupMembers',
+ value ? 'yes' : 'no'
+ )
+ },
sendEventRemindersPush(value) {
OCP.AppConfig.setValue('dav', 'sendEventRemindersPush', value ? 'yes' : 'no')
},