|
33 | 33 | <div class="property-repeat__options"> |
34 | 34 | <h2>{{ $t('calendar', 'Repeat event') }}</h2> |
35 | 35 | <RepeatFreqInterval |
36 | | - v-if="!isRecurrenceException && !isReadOnly" |
| 36 | + v-if="!isEditingExceptionInstance && !isReadOnly" |
37 | 37 | :frequency="recurrenceRule.frequency" |
38 | 38 | :interval="recurrenceRule.interval" |
39 | 39 | @changeInterval="changeInterval" |
40 | 40 | @changeFrequency="changeFrequency" /> |
41 | 41 | <RepeatFreqWeeklyOptions |
42 | | - v-if="isFreqWeekly && !isRecurrenceException && !isReadOnly" |
| 42 | + v-if="isFreqWeekly && !isEditingExceptionInstance && !isReadOnly" |
43 | 43 | :byDay="recurrenceRule.byDay" |
44 | 44 | @addByDay="addByDay" |
45 | 45 | @removeByDay="removeByDay" /> |
46 | 46 | <RepeatFreqMonthlyOptions |
47 | | - v-if="isFreqMonthly && !isRecurrenceException && !isReadOnly" |
| 47 | + v-if="isFreqMonthly && !isEditingExceptionInstance && !isReadOnly" |
48 | 48 | :byDay="recurrenceRule.byDay" |
49 | 49 | :byMonthDay="recurrenceRule.byMonthDay" |
50 | 50 | :bySetPosition="recurrenceRule.bySetPosition" |
|
55 | 55 | @changeToBySetPosition="changeToBySetPositionMonthly" |
56 | 56 | @changeToByMonthDay="changeToByDayMonthly" /> |
57 | 57 | <RepeatFreqYearlyOptions |
58 | | - v-if="isFreqYearly && !isRecurrenceException && !isReadOnly" |
| 58 | + v-if="isFreqYearly && !isEditingExceptionInstance && !isReadOnly" |
59 | 59 | :byDay="recurrenceRule.byDay" |
60 | 60 | :byMonth="recurrenceRule.byMonth" |
61 | 61 | :byMonthDay="recurrenceRule.byMonthDay" |
|
69 | 69 | @changeToBySetPosition="changeToBySetPositionYearly" |
70 | 70 | @changeToByMonthDay="changeToByDayYearly" /> |
71 | 71 | <RepeatEndRepeat |
72 | | - v-if="isRepeating && !isRecurrenceException && !isReadOnly" |
| 72 | + v-if="isRepeating && !isEditingExceptionInstance && !isReadOnly" |
73 | 73 | :calendarObjectInstance="calendarObjectInstance" |
74 | 74 | :until="recurrenceRule.until" |
75 | 75 | :count="recurrenceRule.count" |
|
78 | 78 | @setCount="setCount" |
79 | 79 | @changeToCount="changeToCount" |
80 | 80 | @changeToUntil="changeToUntil" /> |
81 | | - <RepeatUnsupportedWarning v-if="recurrenceRule.isUnsupported && !isRecurrenceException" /> |
82 | | - <RepeatExceptionWarning v-if="isRecurrenceException" /> |
| 81 | + <RepeatUnsupportedWarning v-if="recurrenceRule.isUnsupported && !isEditingExceptionInstance" /> |
| 82 | + <RepeatExceptionWarning v-if="isEditingExceptionInstance" /> |
83 | 83 | </div> |
84 | 84 | <div |
85 | | - v-if="!isRecurrenceException && !isReadOnly" |
| 85 | + v-if="!isEditingExceptionInstance && !isReadOnly" |
86 | 86 | class="property-repeat__options__footer"> |
87 | 87 | <NcButton variant="primary" @click="saveAndClose"> |
88 | 88 | {{ $t('calendar', 'Set repetition') }} |
@@ -154,25 +154,26 @@ export default { |
154 | 154 | }, |
155 | 155 |
|
156 | 156 | /** |
157 | | - * Whether or not the user is editing the master-item |
158 | | - * If so, we are enforcing "This and all future" and |
159 | | - * don't allow to just save this occurrence |
| 157 | + * Whether or not the user is editing the base instance. |
| 158 | + * Recurrence-rule changes on a non-base instance require a future update. |
160 | 159 | */ |
161 | | - isEditingMasterItem: { |
| 160 | + isEditingBaseInstance: { |
162 | 161 | type: Boolean, |
163 | 162 | required: true, |
164 | 163 | }, |
165 | 164 |
|
166 | 165 | /** |
167 | | - * Whether or not this instance of the event is a recurrence-exception. |
| 166 | + * Whether or not the user is editing a recurrence-exception. |
168 | 167 | * If yes, you can't modify the recurrence-rule |
169 | 168 | */ |
170 | | - isRecurrenceException: { |
| 169 | + isEditingExceptionInstance: { |
171 | 170 | type: Boolean, |
172 | 171 | required: true, |
173 | 172 | }, |
174 | 173 | }, |
175 | 174 |
|
| 175 | + emits: ['requireFutureUpdate'], |
| 176 | +
|
176 | 177 | data() { |
177 | 178 | return { |
178 | 179 | showOptions: false, |
@@ -485,8 +486,8 @@ export default { |
485 | 486 | }) |
486 | 487 | } |
487 | 488 |
|
488 | | - if (!this.isEditingMasterItem) { |
489 | | - this.$emit('forceThisAndAllFuture') |
| 489 | + if (!this.isEditingBaseInstance) { |
| 490 | + this.$emit('requireFutureUpdate') |
490 | 491 | } |
491 | 492 |
|
492 | 493 | this.calendarObjectInstanceStore.calendarObjectInstance.canModifyAllDay = this.calendarObjectInstanceStore.calendarObjectInstance.eventComponent.canModifyAllDay() |
|
0 commit comments