Skip to content

Commit c9eeb82

Browse files
author
Dominik Grenz
committed
Update Breadcrumb title
1 parent 644eddc commit c9eeb82

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

personalization-webcomponents/src/components/ChecklistHeader.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
import type DummyChecklist from "@/api/dummyservice/DummyChecklist.ts";
4747
4848
import { MucIntro } from "@muenchen/muc-patternlab-vue";
49-
import { computed } from "vue";
49+
import {computed, onMounted} from "vue";
5050
5151
import MucChip from "@/components/common/muc-chip.vue";
5252
import { getChecklistIconByTitle } from "@/util/constants.ts";
@@ -55,6 +55,13 @@ const props = defineProps<{
5555
checklist: DummyChecklist;
5656
}>();
5757
58+
onMounted(() => {
59+
const element = document.querySelector('[data-fragment-placeholder="breadcrumb-label"]');
60+
if (element) {
61+
element.innerHTML = props.checklist.title;
62+
}
63+
})
64+
5865
const todoCount = computed(() => {
5966
return props.checklist.items.filter((value) => !value.checked).length;
6067
});

0 commit comments

Comments
 (0)