aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/src/views/Availability.vue
blob: b39e5671da1f00c2d2d3dab92f7da42973baf479 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<template>
	<div>
		<NcSettingsSection :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"
			:name="$t('dav', 'Absence')"
			:description="$t('dav', 'Configure your next absence period.')">
			<AbsenceForm />
		</NcSettingsSection>
	</div>
</template>

<script>
import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection.js'
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>