@@ -344,7 +358,7 @@
},
allowEditing: {
type: Boolean,
- default: true
+ default: false
},
fieldColor: {
type: String,
@@ -425,7 +439,14 @@
},
this.eventObject
)
+ },
+ isEditingAllowed: function () {
+ if (dashHas(this.eventObject, 'allowEditing')) {
+ return this.eventObject.allowEditing
+ }
+ return this.allowEditing
}
+
},
methods: {
textExists: function (fieldLocation) {
@@ -491,7 +512,7 @@
this.eventObject
)
this.__close()
- }
+ },
},
mounted () {}
}
diff --git a/src/components/calendar/CalendarMonth.vue b/src/components/calendar/CalendarMonth.vue
index 809710e..e8bf19b 100755
--- a/src/components/calendar/CalendarMonth.vue
+++ b/src/components/calendar/CalendarMonth.vue
@@ -76,6 +76,7 @@
:has-next-day="thisEvent.hasNext"
:first-day-of-week="(weekDayIndex === 0)"
:last-day-of-week="(weekDayIndex === (thisWeek.length -1))"
+ :allow-editing="allowEditing"
/>
@@ -91,6 +92,7 @@
:calendar-locale="calendarLocale"
:calendar-timezone="calendarTimezone"
:event-ref="eventRef"
+ :allow-editing="allowEditing"
/>
diff --git a/src/components/calendar/CalendarMultiDay.vue b/src/components/calendar/CalendarMultiDay.vue
index 52d5ee4..9303a51 100644
--- a/src/components/calendar/CalendarMultiDay.vue
+++ b/src/components/calendar/CalendarMultiDay.vue
@@ -68,6 +68,7 @@
:prevent-event-detail="preventEventDetail"
:calendar-locale="calendarLocale"
:calendar-timezone="calendarTimezone"
+ :allow-editing="allowEditing"
/>