diff options
Diffstat (limited to 'apps/dav/src/views/Availability.vue')
-rw-r--r-- | apps/dav/src/views/Availability.vue | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/apps/dav/src/views/Availability.vue b/apps/dav/src/views/Availability.vue new file mode 100644 index 00000000000..1922f5b706e --- /dev/null +++ b/apps/dav/src/views/Availability.vue @@ -0,0 +1,40 @@ +<!-- + - SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors + - SPDX-License-Identifier: AGPL-3.0-or-later +--> +<template> + <div> + <NcSettingsSection id="availability" + :name="$t('dav', 'Availability')" + :description="$t('dav', 'If you configure your working hours, other people will see when you are out of office when they book a meeting.')"> + <AvailabilityForm /> + </NcSettingsSection> + <NcSettingsSection v-if="!hideAbsenceSettings" + id="absence" + :name="$t('dav', 'Absence')" + :description="$t('dav', 'Configure your next absence period.')"> + <AbsenceForm /> + </NcSettingsSection> + </div> +</template> + +<script> +import NcSettingsSection from '@nextcloud/vue/components/NcSettingsSection' +import AbsenceForm from '../components/AbsenceForm.vue' +import AvailabilityForm from '../components/AvailabilityForm.vue' +import { loadState } from '@nextcloud/initial-state' + +export default { + name: 'Availability', + components: { + NcSettingsSection, + AbsenceForm, + AvailabilityForm, + }, + data() { + return { + hideAbsenceSettings: loadState('dav', 'hide_absence_settings', true), + } + }, +} +</script> |