fix(frontend): hide drag handle for fixed project lists (#1421)

This commit is contained in:
kolaente 2025-09-05 12:51:44 +02:00 committed by GitHub
parent 02da0116a9
commit 61f0cc9507
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,7 @@
:project="project"
:is-loading="projectUpdating[project.id]"
:can-collapse="canCollapse"
:can-edit-order="canEditOrder"
:data-project-id="project.id"
/>
</template>

View File

@ -15,7 +15,7 @@
/>
</BaseButton>
<span
v-if="project.id > 0 && project.maxPermission > PERMISSIONS.READ"
v-if="canEditOrder && project.id > 0 && project.maxPermission > PERMISSIONS.READ"
class="icon menu-item-icon handle drag-handle-standalone"
@mousedown.stop
@click.stop.prevent
@ -103,6 +103,7 @@ const props = defineProps<{
project: IProject,
isLoading?: boolean,
canCollapse?: boolean,
canEditOrder?: boolean,
}>()
const projectStore = useProjectStore()