summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/src/views/Availability.vue30
-rw-r--r--apps/dav/src/views/CalDavSettings.vue32
2 files changed, 31 insertions, 31 deletions
diff --git a/apps/dav/src/views/Availability.vue b/apps/dav/src/views/Availability.vue
index 5f616fe05d1..4a66dc383c2 100644
--- a/apps/dav/src/views/Availability.vue
+++ b/apps/dav/src/views/Availability.vue
@@ -1,12 +1,12 @@
<template>
- <SettingsSection :title="$t('dav', 'Availability')"
+ <NcSettingsSection :title="$t('dav', 'Availability')"
:description="$t('dav', 'If you configure your working hours, other users will see when you are out of office when they book a meeting.')">
<div class="time-zone">
<strong>
{{ $t('dav', 'Time zone:') }}
</strong>
<span class="time-zone-text">
- <TimezonePicker v-model="timezone" />
+ <NcTimezonePicker v-model="timezone" />
</span>
</div>
@@ -24,16 +24,16 @@
:l10n-saturday="$t('dav', 'Saturday')"
:l10n-sunday="$t('dav', 'Sunday')" />
- <CheckboxRadioSwitch :checked.sync="automated">
+ <NcCheckboxRadioSwitch :checked.sync="automated">
{{ $t('dav', 'Automatically set user status to "Do not disturb" outside of availability to mute all notifications.') }}
- </CheckboxRadioSwitch>
+ </NcCheckboxRadioSwitch>
- <ButtonVue :disabled="loading || saving"
+ <NcButton :disabled="loading || saving"
type="primary"
@click="save">
{{ $t('dav', 'Save') }}
- </ButtonVue>
- </SettingsSection>
+ </NcButton>
+ </NcSettingsSection>
</template>
<script>
@@ -53,19 +53,19 @@ import {
disableUserStatusAutomation,
} from '../service/PreferenceService'
import jstz from 'jstimezonedetect'
-import ButtonVue from '@nextcloud/vue/dist/Components/ButtonVue'
-import CheckboxRadioSwitch from '@nextcloud/vue/dist/Components/CheckboxRadioSwitch'
-import SettingsSection from '@nextcloud/vue/dist/Components/SettingsSection'
-import TimezonePicker from '@nextcloud/vue/dist/Components/TimezonePicker'
+import NcButton from '@nextcloud/vue/dist/Components/NcButton'
+import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch'
+import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection'
+import NcTimezonePicker from '@nextcloud/vue/dist/Components/NcTimezonePicker'
export default {
name: 'Availability',
components: {
- ButtonVue,
- CheckboxRadioSwitch,
+ NcButton,
+ NcCheckboxRadioSwitch,
CalendarAvailability,
- SettingsSection,
- TimezonePicker,
+ NcSettingsSection,
+ NcTimezonePicker,
},
data() {
// Try to determine the current timezone, and fall back to UTC otherwise
diff --git a/apps/dav/src/views/CalDavSettings.vue b/apps/dav/src/views/CalDavSettings.vue
index 714fc9a4d32..776f32bff36 100644
--- a/apps/dav/src/views/CalDavSettings.vue
+++ b/apps/dav/src/views/CalDavSettings.vue
@@ -1,5 +1,5 @@
<template>
- <SettingsSection :title="$t('dav', 'Calendar server')"
+ <NcSettingsSection :title="$t('dav', 'Calendar server')"
:doc-url="userSyncCalendarsDocUrl">
<!-- Can use v-html as:
- $t passes the translated string through DOMPurify.sanitize,
@@ -7,11 +7,11 @@
<!-- eslint-disable-next-line vue/no-v-html -->
<p class="settings-hint" v-html="hint" />
<p>
- <CheckboxRadioSwitch id="caldavSendInvitations"
+ <NcCheckboxRadioSwitch id="caldavSendInvitations"
:checked.sync="sendInvitations"
type="switch">
{{ $t('dav', 'Send invitations to attendees') }}
- </CheckboxRadioSwitch>
+ </NcCheckboxRadioSwitch>
<!-- Can use v-html as:
- $t passes the translated string through DOMPurify.sanitize,
- replacement strings are not user-controlled. -->
@@ -19,12 +19,12 @@
<em v-html="sendInvitationsHelpText" />
</p>
<p>
- <CheckboxRadioSwitch id="caldavGenerateBirthdayCalendar"
+ <NcCheckboxRadioSwitch id="caldavGenerateBirthdayCalendar"
:checked.sync="generateBirthdayCalendar"
type="switch"
class="checkbox">
{{ $t('dav', 'Automatically generate a birthday calendar') }}
- </CheckboxRadioSwitch>
+ </NcCheckboxRadioSwitch>
<em>
{{ $t('dav', 'Birthday calendars will be generated by a background job.') }}
</em>
@@ -34,11 +34,11 @@
</em>
</p>
<p>
- <CheckboxRadioSwitch id="caldavSendEventReminders"
+ <NcCheckboxRadioSwitch id="caldavSendEventReminders"
:checked.sync="sendEventReminders"
type="switch">
{{ $t('dav', 'Send notifications for events') }}
- </CheckboxRadioSwitch>
+ </NcCheckboxRadioSwitch>
<!-- Can use v-html as:
- $t passes the translated string through DOMPurify.sanitize,
- replacement strings are not user-controlled. -->
@@ -50,41 +50,41 @@
</em>
</p>
<p class="indented">
- <CheckboxRadioSwitch id="caldavSendEventRemindersToSharedGroupMembers"
+ <NcCheckboxRadioSwitch id="caldavSendEventRemindersToSharedGroupMembers"
:checked.sync="sendEventRemindersToSharedGroupMembers"
type="switch"
:disabled="!sendEventReminders">
{{ $t('dav', 'Send reminder notifications to calendar sharees as well' ) }}
- </CheckboxRadioSwitch>
+ </NcCheckboxRadioSwitch>
<em>
{{ $t('dav', 'Reminders are always sent to organizers and attendees.' ) }}
</em>
</p>
<p class="indented">
- <CheckboxRadioSwitch id="caldavSendEventRemindersPush"
+ <NcCheckboxRadioSwitch id="caldavSendEventRemindersPush"
:checked.sync="sendEventRemindersPush"
type="switch"
:disabled="!sendEventReminders">
{{ $t('dav', 'Enable notifications for events via push') }}
- </CheckboxRadioSwitch>
+ </NcCheckboxRadioSwitch>
</p>
- </SettingsSection>
+ </NcSettingsSection>
</template>
<script>
import axios from '@nextcloud/axios'
import { generateUrl } from '@nextcloud/router'
import { loadState } from '@nextcloud/initial-state'
-import SettingsSection from '@nextcloud/vue/dist/Components/SettingsSection'
-import CheckboxRadioSwitch from '@nextcloud/vue/dist/Components/CheckboxRadioSwitch'
+import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection'
+import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch'
const userSyncCalendarsDocUrl = loadState('dav', 'userSyncCalendarsDocUrl', '#')
export default {
name: 'CalDavSettings',
components: {
- CheckboxRadioSwitch,
- SettingsSection,
+ NcCheckboxRadioSwitch,
+ NcSettingsSection,
},
data() {
return {