fix: drag and drop implementation in calendar layout and kanban layout (#2921)
* fix profile issue filters and kanban * chore: calendar drag and drop * chore: kanban drag and drop * dev: remove issue from the kanban layout and resolved build errors --------- Co-authored-by: rahulramesha <rahulramesham@gmail.com>
This commit is contained in:
parent
e16e468b8f
commit
011db50da6
18 changed files with 480 additions and 50 deletions
|
|
@ -37,10 +37,12 @@ interface IBaseCalendarRoot {
|
|||
[EIssueActions.REMOVE]?: (issue: IIssue) => void;
|
||||
};
|
||||
viewId?: string;
|
||||
handleDragDrop: (source: any, destination: any, issues: any, issueWithIds: any) => void;
|
||||
}
|
||||
|
||||
export const BaseCalendarRoot = observer((props: IBaseCalendarRoot) => {
|
||||
const { issueStore, issuesFilterStore, calendarViewStore, QuickActions, issueActions, viewId } = props;
|
||||
const { issueStore, issuesFilterStore, calendarViewStore, QuickActions, issueActions, viewId, handleDragDrop } =
|
||||
props;
|
||||
|
||||
const displayFilters = issuesFilterStore.issueFilters?.displayFilters;
|
||||
|
||||
|
|
@ -56,7 +58,7 @@ export const BaseCalendarRoot = observer((props: IBaseCalendarRoot) => {
|
|||
// return if dropped on the same date
|
||||
if (result.destination.droppableId === result.source.droppableId) return;
|
||||
|
||||
calendarViewStore?.handleDragDrop(result.source, result.destination);
|
||||
if (handleDragDrop) handleDragDrop(result.source, result.destination, issues, groupedIssueIds);
|
||||
};
|
||||
|
||||
const handleIssues = useCallback(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue