settings.js 907 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
  3. * SPDX-License-Identifier: AGPL-3.0-or-later
  4. */
  5. import Vue from 'vue'
  6. import { loadState } from '@nextcloud/initial-state'
  7. import { translate } from '@nextcloud/l10n'
  8. import CalDavSettings from './views/CalDavSettings.vue'
  9. Vue.prototype.$t = translate
  10. const View = Vue.extend(CalDavSettings)
  11. const CalDavSettingsView = new View({
  12. name: 'CalDavSettingsView',
  13. data() {
  14. return {
  15. sendInvitations: loadState('dav', 'sendInvitations'),
  16. generateBirthdayCalendar: loadState(
  17. 'dav',
  18. 'generateBirthdayCalendar'
  19. ),
  20. sendEventReminders: loadState('dav', 'sendEventReminders'),
  21. sendEventRemindersToSharedUsers: loadState(
  22. 'dav',
  23. 'sendEventRemindersToSharedUsers'
  24. ),
  25. sendEventRemindersPush: loadState('dav', 'sendEventRemindersPush'),
  26. }
  27. },
  28. })
  29. CalDavSettingsView.$mount('#settings-admin-caldav')