diff --git a/src/components/AppNavigation/Settings/ImportScreenRow.vue b/src/components/AppNavigation/Settings/ImportScreenRow.vue index 1bb8ba0743..0f0581ea78 100644 --- a/src/components/AppNavigation/Settings/ImportScreenRow.vue +++ b/src/components/AppNavigation/Settings/ImportScreenRow.vue @@ -28,7 +28,7 @@ + @select-calendar="selectCalendar" /> diff --git a/src/components/Editor/Alarm/AlarmList.vue b/src/components/Editor/Alarm/AlarmList.vue index a3b5237126..32a07a64a6 100644 --- a/src/components/Editor/Alarm/AlarmList.vue +++ b/src/components/Editor/Alarm/AlarmList.vue @@ -28,11 +28,11 @@ :alarm="alarm" :calendar-object-instance="calendarObjectInstance" :is-read-only="isReadOnly" - @removeAlarm="removeAlarm" /> + @remove-alarm="removeAlarm" /> + @add-alarm="addAlarm" /> diff --git a/src/components/Editor/Alarm/AlarmListItem.vue b/src/components/Editor/Alarm/AlarmListItem.vue index 6e9839defa..9551be8b5d 100644 --- a/src/components/Editor/Alarm/AlarmListItem.vue +++ b/src/components/Editor/Alarm/AlarmListItem.vue @@ -358,7 +358,7 @@ export default { * This method emits the removeAlarm event */ removeAlarm() { - this.$emit('removeAlarm', this.alarm) + this.$emit('remove-alarm', this.alarm) }, /** * changes the relative amount entered in timed mode diff --git a/src/components/Editor/Alarm/AlarmListNew.vue b/src/components/Editor/Alarm/AlarmListNew.vue index eef80c42f5..cf89d187d4 100644 --- a/src/components/Editor/Alarm/AlarmListNew.vue +++ b/src/components/Editor/Alarm/AlarmListNew.vue @@ -79,7 +79,7 @@ export default { * @param root0.value */ addReminderFromSelect({ value }) { - this.$emit('addAlarm', value) + this.$emit('add-alarm', value) }, /** * diff --git a/src/components/Editor/Invitees/InviteesList.vue b/src/components/Editor/Invitees/InviteesList.vue index bc146907bb..eb8bd0b5c6 100644 --- a/src/components/Editor/Invitees/InviteesList.vue +++ b/src/components/Editor/Invitees/InviteesList.vue @@ -26,7 +26,7 @@ + @add-attendee="addAttendee" /> + @remove-attendee="removeAttendee" /> diff --git a/src/components/Editor/Invitees/InviteesListItem.vue b/src/components/Editor/Invitees/InviteesListItem.vue index cde515d263..327cbfd8e0 100644 --- a/src/components/Editor/Invitees/InviteesListItem.vue +++ b/src/components/Editor/Invitees/InviteesListItem.vue @@ -167,7 +167,7 @@ export default { * Removes an attendee from the event */ removeAttendee() { - this.$emit('removeAttendee', this.attendee) + this.$emit('remove-attendee', this.attendee) }, }, } diff --git a/src/components/Editor/Invitees/InviteesListSearch.vue b/src/components/Editor/Invitees/InviteesListSearch.vue index 65691c7236..48eb2e5f8a 100644 --- a/src/components/Editor/Invitees/InviteesListSearch.vue +++ b/src/components/Editor/Invitees/InviteesListSearch.vue @@ -134,7 +134,7 @@ export default { this.matches = matches }, 500), addAttendee(selectedValue) { - this.$emit('addAttendee', selectedValue) + this.$emit('add-attendee', selectedValue) }, async findAttendeesFromContactsAPI(query) { let response diff --git a/src/components/Editor/Properties/PropertyCalendarPicker.vue b/src/components/Editor/Properties/PropertyCalendarPicker.vue index 41f1457812..3084a029f1 100644 --- a/src/components/Editor/Properties/PropertyCalendarPicker.vue +++ b/src/components/Editor/Properties/PropertyCalendarPicker.vue @@ -30,7 +30,7 @@ :calendar="calendar" :calendars="calendars" :show-calendar-on-select="true" - @selectCalendar="selectCalendar" /> + @select-calendar="selectCalendar" /> + @change-timezone="changeStartTimezone" /> + @change-timezone="changeEndTimezone" />
+ @change-interval="changeInterval" + @change-frequency="changeFrequency" /> + @add-by-day="addByDay" + @remove-by-day="removeByDay" /> + @add-by-month-day="addByMonthDay" + @remove-by-month-day="removeByMonthDay" + @change-by-day="setByDay" + @change-by-set-position="setBySetPosition" + @change-to-by-set-position="changeToBySetPositionMonthly" + @change-to-by-day="changeToByDayMonthly" /> + @change-by-day="setByDay" + @change-by-set-position="setBySetPosition" + @add-by-month="addByMonth" + @remove-by-month="removeByMonth" + @enable-by-set-position="enableBySetPositionYearly" + @disable-by-set-position="disableBySetPositionYearly" /> + @set-infinite="setInfinite" + @set-until="setUntil" + @set-count="setCount" + @change-to-count="changeToCount" + @change-to-until="changeToUntil" /> @@ -421,7 +421,7 @@ export default { } if (!this.isEditingMasterItem) { - this.$emit('forceThisAndAllFuture') + this.$emit('force-this-and-all-future') } }, }, diff --git a/src/components/Editor/Repeat/RepeatEndRepeat.vue b/src/components/Editor/Repeat/RepeatEndRepeat.vue index 735c9bf783..1ce4b9c30a 100644 --- a/src/components/Editor/Repeat/RepeatEndRepeat.vue +++ b/src/components/Editor/Repeat/RepeatEndRepeat.vue @@ -171,16 +171,16 @@ export default { switch (value.value) { case 'until': - this.$emit('changeToUntil') + this.$emit('change-to-until') break case 'count': - this.$emit('changeToCount') + this.$emit('change-to-count') break case 'never': default: - this.$emit('setInfinite') + this.$emit('set-infinite') } }, /** @@ -189,7 +189,7 @@ export default { * @param {Date} date The new date to set as end */ changeUntil(date) { - this.$emit('setUntil', date) + this.$emit('set-until', date) }, /** * Changes the number of occurrences in this recurrence-set @@ -202,7 +202,7 @@ export default { const selectedValue = parseInt(event.target.value, 10) if (selectedValue >= minimumValue && selectedValue <= maximumValue) { - this.$emit('setCount', selectedValue) + this.$emit('set-count', selectedValue) } }, }, diff --git a/src/components/Editor/Repeat/RepeatFreqInterval.vue b/src/components/Editor/Repeat/RepeatFreqInterval.vue index a76db92cb0..6b3b0f94e5 100644 --- a/src/components/Editor/Repeat/RepeatFreqInterval.vue +++ b/src/components/Editor/Repeat/RepeatFreqInterval.vue @@ -73,7 +73,7 @@ export default { }, methods: { changeFrequency(value) { - this.$emit('changeFrequency', value) + this.$emit('change-frequency', value) }, /** * @@ -85,7 +85,7 @@ export default { const selectedValue = parseInt(event.target.value, 10) if (selectedValue >= minimumValue && selectedValue <= maximumValue) { - this.$emit('changeInterval', selectedValue) + this.$emit('change-interval', selectedValue) } }, }, diff --git a/src/components/Editor/Repeat/RepeatFreqMonthlyOptions.vue b/src/components/Editor/Repeat/RepeatFreqMonthlyOptions.vue index 374ffc7212..8016db5020 100644 --- a/src/components/Editor/Repeat/RepeatFreqMonthlyOptions.vue +++ b/src/components/Editor/Repeat/RepeatFreqMonthlyOptions.vue @@ -134,10 +134,10 @@ export default { */ toggleByMonthDay(byMonthDay) { if (this.byMonthDay.indexOf(byMonthDay) === -1) { - this.$emit('addByMonthDay', byMonthDay) + this.$emit('add-by-month-day', byMonthDay) } else { if (this.byMonthDay.length > 1) { - this.$emit('removeByMonthDay', byMonthDay) + this.$emit('remove-by-month-day', byMonthDay) } } }, @@ -146,20 +146,20 @@ export default { return } - this.$emit('changeToByDay') + this.$emit('change-to-by-day') }, enableBySetPosition() { if (!this.byMonthDayEnabled) { return } - this.$emit('changeToBySetPosition') + this.$emit('change-to-by-set-position') }, changeByDay(value) { - this.$emit('changeByDay', value) + this.$emit('change-by-day', value) }, changeBySetPosition(value) { - this.$emit('changeBySetPosition', value) + this.$emit('change-by-set-position', value) }, }, } diff --git a/src/components/Editor/Repeat/RepeatFreqWeeklyOptions.vue b/src/components/Editor/Repeat/RepeatFreqWeeklyOptions.vue index 3edd1a686d..e6fc6c9885 100644 --- a/src/components/Editor/Repeat/RepeatFreqWeeklyOptions.vue +++ b/src/components/Editor/Repeat/RepeatFreqWeeklyOptions.vue @@ -87,10 +87,10 @@ export default { methods: { toggleByDay(day) { if (this.byDay.indexOf(day) === -1) { - this.$emit('addByDay', day) + this.$emit('add-by-day', day) } else { if (this.byDay.length > 1) { - this.$emit('removeByDay', day) + this.$emit('remove-by-day', day) } } }, diff --git a/src/components/Editor/Repeat/RepeatFreqYearlyOptions.vue b/src/components/Editor/Repeat/RepeatFreqYearlyOptions.vue index 98c53384e7..81e5339331 100644 --- a/src/components/Editor/Repeat/RepeatFreqYearlyOptions.vue +++ b/src/components/Editor/Repeat/RepeatFreqYearlyOptions.vue @@ -163,10 +163,10 @@ export default { */ toggleByMonth(byMonth) { if (this.byMonth.indexOf(byMonth) === -1) { - this.$emit('addByMonth', byMonth) + this.$emit('add-by-month', byMonth) } else { if (this.byMonth.length > 1) { - this.$emit('removeByMonth', byMonth) + this.$emit('remove-by-month', byMonth) } } }, @@ -175,16 +175,16 @@ export default { */ toggleBySetPosition() { if (this.isBySetPositionEnabled) { - this.$emit('disableBySetPosition') + this.$emit('disable-by-set-position') } else { - this.$emit('enableBySetPosition') + this.$emit('enable-by-set-position') } }, changeByDay(value) { - this.$emit('changeByDay', value) + this.$emit('change-by-day', value) }, changeBySetPosition(value) { - this.$emit('changeBySetPosition', value) + this.$emit('change-by-set-position', value) }, }, } diff --git a/src/components/Editor/Resources/ResourceList.vue b/src/components/Editor/Resources/ResourceList.vue index 3629c55a59..2c9daa68e4 100644 --- a/src/components/Editor/Resources/ResourceList.vue +++ b/src/components/Editor/Resources/ResourceList.vue @@ -25,7 +25,7 @@ + @add-resource="addResource" /> + @remove-resource="removeResource" /> + @select-calendar="changeCalendar" /> + @update-start-date="updateStartDate" + @update-start-timezone="updateStartTimezone" + @update-end-date="updateEndDate" + @update-end-timezone="updateEndTimezone" + @toggle-all-day="toggleAllDay" /> + @add-single-value="addCategory" + @remove-single-value="removeCategory" /> + @save-this-only="saveAndLeave(false)" + @save-this-and-all-future="saveAndLeave(true)" /> + @save-this-only="saveAndLeave(false)" + @save-this-and-all-future="saveAndLeave(true)" /> + @save-this-only="saveAndLeave(false)" + @save-this-and-all-future="saveAndLeave(true)" /> + @save-this-only="saveAndLeave(false)" + @save-this-and-all-future="saveAndLeave(true)" /> + @force-this-and-all-future="forceModifyingFuture" />
+ @save-this-only="saveAndLeave(false)" + @save-this-and-all-future="saveAndLeave(true)" /> diff --git a/src/views/EditSimple.vue b/src/views/EditSimple.vue index f9459696a4..162a516cb3 100644 --- a/src/views/EditSimple.vue +++ b/src/views/EditSimple.vue @@ -83,7 +83,7 @@ :calendars="calendars" :calendar="selectedCalendar" :is-read-only="isReadOnly" - @selectCalendar="changeCalendar" /> + @select-calendar="changeCalendar" /> + @update-start-date="updateStartDate" + @update-start-timezone="updateStartTimezone" + @update-end-date="updateEndDate" + @update-end-timezone="updateEndTimezone" + @toggle-all-day="toggleAllDay" /> + @save-this-only="saveAndLeave(false)" + @save-this-and-all-future="saveAndLeave(true)" + @show-more="showMore" />