aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/src/settings.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/src/settings.js')
-rw-r--r--apps/dav/src/settings.js32
1 files changed, 32 insertions, 0 deletions
diff --git a/apps/dav/src/settings.js b/apps/dav/src/settings.js
new file mode 100644
index 00000000000..c69a8b03614
--- /dev/null
+++ b/apps/dav/src/settings.js
@@ -0,0 +1,32 @@
+/**
+ * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+import Vue from 'vue'
+import { loadState } from '@nextcloud/initial-state'
+import { translate } from '@nextcloud/l10n'
+import CalDavSettings from './views/CalDavSettings.vue'
+
+Vue.prototype.$t = translate
+
+const View = Vue.extend(CalDavSettings)
+const CalDavSettingsView = new View({
+ name: 'CalDavSettingsView',
+ data() {
+ return {
+ sendInvitations: loadState('dav', 'sendInvitations'),
+ generateBirthdayCalendar: loadState(
+ 'dav',
+ 'generateBirthdayCalendar',
+ ),
+ sendEventReminders: loadState('dav', 'sendEventReminders'),
+ sendEventRemindersToSharedUsers: loadState(
+ 'dav',
+ 'sendEventRemindersToSharedUsers',
+ ),
+ sendEventRemindersPush: loadState('dav', 'sendEventRemindersPush'),
+ }
+ },
+})
+
+CalDavSettingsView.$mount('#settings-admin-caldav')