From 4aeb228c3a69218535fddd00378f511a6b5d2b13 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 11 Sep 2024 18:23:43 +0200 Subject: [PATCH] fix(project): show description in title attribute without html Resolves https://community.vikunja.io/t/feedback-to-vikunja-0-24-0/2557/6 --- frontend/src/components/project/partials/ProjectCard.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/project/partials/ProjectCard.vue b/frontend/src/components/project/partials/ProjectCard.vue index 09d63330c..0dafed4b7 100644 --- a/frontend/src/components/project/partials/ProjectCard.vue +++ b/frontend/src/components/project/partials/ProjectCard.vue @@ -35,7 +35,7 @@ +import {computed} from 'vue' import type {IProject} from '@/modelTypes/IProject' import BaseButton from '@/components/base/BaseButton.vue' @@ -68,6 +69,10 @@ const props = defineProps<{ const {background, blurHashUrl} = useProjectBackground(() => props.project) const projectStore = useProjectStore() + +const textOnlyDescription = computed(() => { + return props.project.description ? props.project.description.replace(/<[^>]*>/g, '') : '' +})