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:
Hamza Mahjoubi 2024-03-20 16:51:23 +01:00
parent d28d1a5ccd
commit 25069ad310
2 changed files with 4 additions and 4 deletions

View File

@ -119,7 +119,7 @@ export default {
editable: this.isEditable,
selectable: this.isAuthenticatedUser,
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),
eventResize: this.isWidget ? false : eventResize(this.$store),
navLinkDayClick: this.isWidget ? false : navLinkDayClick(this.$router, this.$route),

View File

@ -37,14 +37,14 @@ import { emit } from '@nextcloud/event-bus'
* @param {object} route The current Vue route
* @param {Window} window The window object
* @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}
*/
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 }) {
if (isWidget) {
store.commit('setWidgetRef', { widgetRef: widgetRef.$el })
store.commit('setWidgetRef', { widgetRef: ref.fullCalendar.$el })
}
switch (event.extendedProps.objectType) {
case 'VEVENT':