|
4 | 4 | --> |
5 | 5 |
|
6 | 6 | <template> |
7 | | - <NcAppNavigationItem |
8 | | - class="navigation-calendar-settings" |
| 7 | + <NcAppNavigationItem class="navigation-calendar-settings" |
9 | 8 | :name="settingsTitle" |
10 | 9 | :pinned="true" |
11 | 10 | @click.prevent="onShowSettings"> |
12 | 11 | <template #icon> |
13 | 12 | <CogIcon :size="20" decorative /> |
14 | 13 | </template> |
15 | 14 | <template #extra> |
16 | | - <NcAppSettingsDialog |
17 | | - id="app-settings-modal" |
| 15 | + <NcAppSettingsDialog id="app-settings-modal" |
18 | 16 | class="app-settings-modal" |
19 | 17 | :name="t('mail', 'Calendar settings')" |
20 | 18 | :legacy="false" |
21 | 19 | :show-navigation="true" |
22 | 20 | :additional-trap-elements="[]" |
23 | 21 | :open="showSettingsModal" |
24 | 22 | @update:open="(val) => showSettingsModal = val"> |
25 | | - <NcAppSettingsSection |
26 | | - id="settings-modal-general" |
| 23 | + <NcAppSettingsSection id="settings-modal-general" |
27 | 24 | :name="t('calendar', 'General')"> |
28 | | - <SettingsTimezoneSelect |
29 | | - :is-disabled="loadingCalendars" /> |
| 25 | + <SettingsTimezoneSelect :is-disabled="loadingCalendars" /> |
30 | 26 | <NcFormBox> |
31 | | - <NcFormBoxButton |
32 | | - target="_blank" |
| 27 | + <NcFormBoxButton target="_blank" |
33 | 28 | :href="availabilitySettingsUrl"> |
34 | 29 | {{ $t('calendar', 'Availability settings') }} |
35 | 30 | </NcFormBoxButton> |
36 | 31 | </NcFormBox> |
37 | | - <SettingsImportSection |
38 | | - :is-disabled="loadingCalendars" /> |
| 32 | + <SettingsImportSection :is-disabled="loadingCalendars" /> |
39 | 33 | <NcFormGroup :label="t('calendar', 'CalDAV')" :description="t('calendar', 'Access Nextcloud calendars from other apps and devices')"> |
40 | 34 | <NcFormBox> |
41 | 35 | <NcFormBoxCopyButton :label="t('calendar', 'CalDAV URL')" :value="primaryCalDAV" /> |
42 | 36 | <NcFormBoxCopyButton :label="t('calendar', 'Server Address for iOS and macOS')" :value="appleCalDAV" /> |
43 | 37 | </NcFormBox> |
44 | 38 | </NcFormGroup> |
45 | 39 | </NcAppSettingsSection> |
46 | | - <NcAppSettingsSection |
47 | | - id="settings-modal-appearance" |
| 40 | + <NcAppSettingsSection id="settings-modal-appearance" |
48 | 41 | :name="t('calendar', 'Appearance')"> |
49 | 42 | <NcFormBox> |
50 | | - <NcFormBoxSwitch |
51 | | - v-model="hasBirthdayCalendarBinding" |
| 43 | + <NcFormBoxSwitch v-model="hasBirthdayCalendarBinding" |
52 | 44 | :disabled="isBirthdayCalendarDisabled" |
53 | 45 | @update:modelValue="toggleBirthdayEnabled"> |
54 | 46 | {{ $t('calendar', 'Birthday calendar') }} |
55 | 47 | </NcFormBoxSwitch> |
56 | | - <NcFormBoxSwitch |
57 | | - v-model="showTasksBinding" |
| 48 | + <NcFormBoxSwitch v-model="showTasksBinding" |
58 | 49 | :disabled="savingTasks" |
59 | 50 | @update:modelValue="toggleTasksEnabled"> |
60 | 51 | {{ $t('calendar', 'Tasks in calendar') }} |
61 | 52 | </NcFormBoxSwitch> |
62 | | - <NcFormBoxSwitch |
63 | | - v-model="showWeekendsBinding" |
| 53 | + <NcFormBoxSwitch v-model="showWeekendsBinding" |
64 | 54 | :disabled="savingWeekend" |
65 | 55 | @update:modelValue="toggleWeekendsEnabled"> |
66 | 56 | {{ $t('calendar', 'Weekends') }} |
67 | 57 | </NcFormBoxSwitch> |
68 | | - <NcFormBoxSwitch |
69 | | - v-model="showWeekNumbersBinding" |
| 58 | + <NcFormBoxSwitch v-model="showWeekNumbersBinding" |
70 | 59 | :disabled="savingWeekNumber" |
71 | 60 | @update:modelValue="toggleWeekNumberEnabled"> |
72 | 61 | {{ $t('calendar', 'Week numbers') }} |
73 | 62 | </NcFormBoxSwitch> |
74 | 63 | </NcFormBox> |
75 | 64 |
|
76 | 65 | <NcFormBox> |
77 | | - <NcFormBoxSwitch |
78 | | - v-model="eventLimitBinding" |
| 66 | + <NcFormBoxSwitch v-model="eventLimitBinding" |
79 | 67 | :disabled="savingEventLimit" |
80 | 68 | @update:modelValue="toggleEventLimitEnabled"> |
81 | 69 | {{ $t('calendar', 'Limit number of events shown in Month view') }} |
82 | 70 | </NcFormBoxSwitch> |
83 | 71 | </NcFormBox> |
84 | 72 |
|
85 | | - <NcSelect |
86 | | - :id="slotDuration" |
| 73 | + <NcSelect :id="slotDuration" |
87 | 74 | :options="slotDurationOptions" |
88 | 75 | :value="selectedDurationOption" |
89 | 76 | :disabled="savingSlotDuration" |
|
93 | 80 | label="label" |
94 | 81 | @option:selected="changeSlotDuration" /> |
95 | 82 | </NcAppSettingsSection> |
96 | | - <NcAppSettingsSection |
97 | | - id="app-settings-modal-editing" |
| 83 | + <NcAppSettingsSection id="app-settings-modal-editing" |
98 | 84 | :name="t('calendar', 'Editing')"> |
99 | | - <NcSelect |
100 | | - :options="defaultReminderOptions" |
| 85 | + <NcSelect :options="defaultReminderOptions" |
101 | 86 | :value="selectedDefaultReminderOption" |
102 | 87 | :disabled="savingDefaultReminder" |
103 | 88 | :clearable="false" |
|
106 | 91 | label="label" |
107 | 92 | @option:selected="changeDefaultReminder" /> |
108 | 93 | <NcFormBox> |
109 | | - <NcFormBoxSwitch |
110 | | - v-model="simpleEventEditorBinding" |
| 94 | + <NcFormBoxSwitch v-model="simpleEventEditorBinding" |
111 | 95 | :disabled="savingPopover" |
112 | 96 | :label="t('calendar', 'Simple event editor')" |
113 | 97 | @update:modelValue="togglePopoverEnabled"> |
|
0 commit comments