feature/projects-all-the-way-down #3323

Merged
konrad merged 123 commits from feature/projects-all-the-way-down into main 2023-05-30 10:09:40 +00:00
Showing only changes of commit 4134fcbd75 - Show all commits

View File

@ -68,7 +68,6 @@ const projectStore = useProjectStore()
dpschen marked this conversation as resolved Outdated

Nice!

Nice!
// Vue draggable will modify the projects list as it changes their position which will not work on a prop.

Also don't render if there are no child projects.

Also don't render if there are no child projects.

But then it won't be possible to drag a project "under" a parent to make it a child of that parent.

But then it won't be possible to drag a project "under" a parent to make it a child of that parent.
// Hence, we'll clone the prop and work on the clone.
// FIXME: cloning does not work when loading the page initially
const collapsedProjects = ref<{ [id: IProject['id']]: boolean }>({})
const availableProjects = ref<IProject[]>([])
const childProjects = ref<{ [id: IProject['id']]: boolean }>({})