feature/projects-all-the-way-down #3323
|
@ -72,7 +72,7 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import {ref, computed, watch, onActivated} from 'vue'
|
||||
import {ref, computed, watch} from 'vue'
|
||||
import draggable from 'zhyswan-vuedraggable'
|
||||
import type {SortableEvent} from 'sortablejs'
|
||||
|
||||
|
@ -106,13 +106,12 @@ const currentProject = computed(() => baseStore.currentProject)
|
|||
// TODO: child projects
|
||||
const availableProjects = ref<IProject[]>([])
|
||||
watch(
|
||||
|
||||
props.projects,
|
||||
() => props.projects,
|
||||
projects => {
|
||||
availableProjects.value = projects
|
||||
},
|
||||
{immediate: true},
|
||||
dpschen marked this conversation as resolved
Outdated
dpschen
commented
What consequence has this? What consequence has this?
konrad
commented
This now works, it didn't in an earlier version. I've removed the comment. This now works, it didn't in an earlier version. I've removed the comment.
|
||||
)
|
||||
dpschen marked this conversation as resolved
Outdated
dpschen
commented
What exactly needs to be done for child projects? What exactly needs to be done for child projects?
konrad
commented
That was an old comment, I've removed it That was an old comment, I've removed it
|
||||
onActivated(() => availableProjects.value = props.projects)
|
||||
|
||||
const projectUpdating = ref<{ [id: IProject['id']]: boolean }>({})
|
||||
|
||||
|
|
Reference in New Issue
Block a user
Really unsure here: Since we do map data directly from the store I'm unsure if we should emit and update the store. Because an emit will change data in the parent. An update from the store will probably as well.
It looks like it works fine without the emit. We're always binding with
:modelValue
instead ofv-model
anyway…