#21 - Kanban : on click on comments count, open dialog with comments panel open
This commit is contained in:
parent
955b8531a1
commit
bcae5587ae
2 changed files with 17 additions and 4 deletions
|
|
@ -134,9 +134,22 @@
|
||||||
v-if="file.comments?.length > 0"
|
v-if="file.comments?.length > 0"
|
||||||
class="order-last | text-sm text-primary font-medium"
|
class="order-last | text-sm text-primary font-medium"
|
||||||
>
|
>
|
||||||
{{ file.comments.length }} commentaire{{
|
<template v-if="step.id === 'proposal'">
|
||||||
file.comments.length > 1 ? "s" : ""
|
<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>
|
</footer>
|
||||||
</article>
|
</article>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ const isOpen = ref(true);
|
||||||
watch(isOpen, (newValue) => {
|
watch(isOpen, (newValue) => {
|
||||||
router.push({ name: route.name });
|
router.push({ name: route.name });
|
||||||
});
|
});
|
||||||
const isCommentsOpen = ref(false);
|
const isCommentsOpen = ref(route.query.comments ? true : false);
|
||||||
const currentPageIndex = ref(1);
|
const currentPageIndex = ref(1);
|
||||||
|
|
||||||
watch(isCommentsOpen, (newVal) => {
|
watch(isCommentsOpen, (newVal) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue