#21 - Kanban : on click on comments count, open dialog with comments panel open

This commit is contained in:
isUnknown 2024-11-22 17:31:34 +01:00
parent 955b8531a1
commit bcae5587ae
2 changed files with 17 additions and 4 deletions

View file

@ -134,9 +134,22 @@
v-if="file.comments?.length > 0"
class="order-last | text-sm text-primary font-medium"
>
{{ file.comments.length }} commentaire{{
file.comments.length > 1 ? "s" : ""
}}
<template v-if="step.id === 'proposal'">
<router-link
:to="'/' + step.uri + '&fileIndex=' + index + '&comments'"
>
{{ file.comments.length }} commentaire{{
file.comments.length > 1 ? "s" : ""
}}
</router-link>
</template>
<template v-else>
<router-link :to="'/' + step.uri + '&comments=true'">
{{ file.comments.length }} commentaire{{
file.comments.length > 1 ? "s" : ""
}}
</router-link>
</template>
</footer>
</article>
</template>

View file

@ -78,7 +78,7 @@ const isOpen = ref(true);
watch(isOpen, (newValue) => {
router.push({ name: route.name });
});
const isCommentsOpen = ref(false);
const isCommentsOpen = ref(route.query.comments ? true : false);
const currentPageIndex = ref(1);
watch(isCommentsOpen, (newVal) => {