mirror of https://github.com/nextcloud/calendar
Fix: can't click on widget event after converstation change in Talk
Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
This commit is contained in:
parent
d28d1a5ccd
commit
25069ad310
|
@ -119,7 +119,7 @@ export default {
|
||||||
editable: this.isEditable,
|
editable: this.isEditable,
|
||||||
selectable: this.isAuthenticatedUser,
|
selectable: this.isAuthenticatedUser,
|
||||||
eventAllow,
|
eventAllow,
|
||||||
eventClick: eventClick(this.$store, this.$router, this.$route, window, this.isWidget, this.$refs.fullCalendar),
|
eventClick: eventClick(this.$store, this.$router, this.$route, window, this.isWidget, this.$refs),
|
||||||
eventDrop: this.isWidget ? false : (...args) => eventDrop(this.$store, this.$refs.fullCalendar.getApi())(...args),
|
eventDrop: this.isWidget ? false : (...args) => eventDrop(this.$store, this.$refs.fullCalendar.getApi())(...args),
|
||||||
eventResize: this.isWidget ? false : eventResize(this.$store),
|
eventResize: this.isWidget ? false : eventResize(this.$store),
|
||||||
navLinkDayClick: this.isWidget ? false : navLinkDayClick(this.$router, this.$route),
|
navLinkDayClick: this.isWidget ? false : navLinkDayClick(this.$router, this.$route),
|
||||||
|
|
|
@ -37,14 +37,14 @@ import { emit } from '@nextcloud/event-bus'
|
||||||
* @param {object} route The current Vue route
|
* @param {object} route The current Vue route
|
||||||
* @param {Window} window The window object
|
* @param {Window} window The window object
|
||||||
* @param {boolean} isWidget Whether the calendar is embedded in a widget
|
* @param {boolean} isWidget Whether the calendar is embedded in a widget
|
||||||
* @param {object} widgetRef
|
* @param {object} ref The ref object of CalendarGrid component
|
||||||
* @return {Function}
|
* @return {Function}
|
||||||
*/
|
*/
|
||||||
export default function(store, router, route, window, isWidget = false, widgetRef = undefined) {
|
export default function(store, router, route, window, isWidget = false, ref = undefined) {
|
||||||
|
|
||||||
return function({ event }) {
|
return function({ event }) {
|
||||||
if (isWidget) {
|
if (isWidget) {
|
||||||
store.commit('setWidgetRef', { widgetRef: widgetRef.$el })
|
store.commit('setWidgetRef', { widgetRef: ref.fullCalendar.$el })
|
||||||
}
|
}
|
||||||
switch (event.extendedProps.objectType) {
|
switch (event.extendedProps.objectType) {
|
||||||
case 'VEVENT':
|
case 'VEVENT':
|
||||||
|
|
Loading…
Reference in New Issue