Skip to content

Commit

Permalink
fixed function names and location
Browse files Browse the repository at this point in the history
  • Loading branch information
thethunderturner committed Dec 5, 2023
1 parent b6245eb commit 83e4e9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/js/filament-fullcalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ export default function fullcalendar({
revert()
}
},
datesSet: ({
datesSet: async({
start: s,
end: e,
startStr: ss,
endStr: es,
timeZone: t,
view: v
}) => {
this.$wire.getActiveGrid({start: s,end: e, startStr: ss, endStr: es, timeZone: t, view: v})
await this.$wire.getActiveGrid({start: s,end: e, startStr: ss, endStr: es, timeZone: t, view: v})
},
eventResize: async ({ event, oldEvent, relatedEvents, startDelta, endDelta, revert }) => {
const shouldRevert = await this.$wire.onEventResize(event, oldEvent, relatedEvents, startDelta, endDelta)
Expand Down
5 changes: 5 additions & 0 deletions src/Widgets/Concerns/InteractsWithEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,9 @@ protected function calculateTimezoneOffset(string $start, ?string $end, bool $al

return [$start, $end, $allDay];
}

public function getActiveGrid($data){

return $data;
}
}

0 comments on commit 83e4e9a

Please sign in to comment.