1
0

chore: rename prop

This commit is contained in:
kolaente 2023-03-28 15:33:34 +02:00
parent 5dd6e9a077
commit 2bb7ff1803
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
2 changed files with 6 additions and 6 deletions

View File

@ -8,13 +8,13 @@
handle=".handle" handle=".handle"
tag="ul" tag="ul"
item-key="id" item-key="id"
:disabled="!allowDrag" :disabled="!canEditOrder"
:component-data="{ :component-data="{
type: 'transition-group', type: 'transition-group',
name: !drag ? 'flip-list' : null, name: !drag ? 'flip-list' : null,
class: [ class: [
'menu-list can-be-hidden', 'menu-list can-be-hidden',
{ 'dragging-disabled': !allowDrag } { 'dragging-disabled': !canEditOrder }
] ]
}" }"
> >
@ -68,7 +68,7 @@
<ProjectsNavigation <ProjectsNavigation
v-if="!collapsedProjects[p.id]" v-if="!collapsedProjects[p.id]"
v-model="p.childProjects" v-model="p.childProjects"
:allow-drag="true" :can-edit-order="true"
/> />
</li> </li>
</template> </template>
@ -94,7 +94,7 @@ import {useProjectStore} from '@/stores/projects'
const props = defineProps<{ const props = defineProps<{
modelValue: IProject[], modelValue: IProject[],
allowDrag: boolean, canEditOrder: boolean,
}>() }>()
const emit = defineEmits(['update:modelValue']) const emit = defineEmits(['update:modelValue'])

View File

@ -49,11 +49,11 @@
</nav> </nav>
<nav class="menu" v-if="favoriteProjects"> <nav class="menu" v-if="favoriteProjects">
<ProjectsNavigation v-model="favoriteProjects" :allow-drag="false"/> <ProjectsNavigation v-model="favoriteProjects" :can-edit-order="false"/>
</nav> </nav>
<nav class="menu"> <nav class="menu">
<ProjectsNavigation v-model="projects" :allow-drag="true"/> <ProjectsNavigation v-model="projects" :can-edit-order="true"/>
</nav> </nav>
<PoweredByLink/> <PoweredByLink/>