Skip to content

Commit 77208ff

Browse files
author
Dominik Grenz
committed
Update checklist-domi
1 parent ab72fb9 commit 77208ff

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

personalization-webcomponents/src/checklist-domi.vue

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,34 @@
44
<div v-html="mucIconsSprite" />
55
<!-- eslint-disable-next-line vue/no-v-html -->
66
<div v-html="customIconsSprite" />
7-
<muc-callout>
8-
<template #header>
9-
<p>checklist-domi Webcomponent</p>
10-
</template>
11-
<template #content>
12-
<p>{{ calloutContent }}</p>
13-
</template>
14-
</muc-callout>
7+
<checklist-header
8+
:checklist=checklists[1]
9+
:loading=false>
10+
11+
</checklist-header>
12+
1513
</div>
14+
1615
</template>
1716

1817
<script setup lang="ts">
19-
import { MucCallout } from "@muenchen/muc-patternlab-vue";
2018
import customIconsSprite from "@muenchen/muc-patternlab-vue/assets/icons/custom-icons.svg?raw";
2119
import mucIconsSprite from "@muenchen/muc-patternlab-vue/assets/icons/muc-icons.svg?raw";
22-
import { computed } from "vue";
20+
import { onMounted, ref} from "vue";
21+
22+
23+
import ChecklistHeader from "@/components/ChecklistHeader.vue";
24+
import type DummyChecklist from "@/api/dummyservice/DummyChecklist.ts";
25+
import DummyChecklistService from "@/api/dummyservice/DummyChecklistService.ts";
26+
2327
24-
import { FIRSTNAME_DEFAULT } from "@/util/constants";
28+
const checklists = ref<DummyChecklist[]>([]);
2529
26-
const { firstName = FIRSTNAME_DEFAULT } = defineProps<{
27-
firstName?: string;
28-
}>();
30+
onMounted(() => {
31+
const dcl = new DummyChecklistService();
32+
checklists.value = dcl.getChecklists();
33+
})
2934
30-
const calloutContent = computed(() => {
31-
return `Hello ${firstName}`;
32-
});
3335
</script>
3436

3537
<style>

0 commit comments

Comments
 (0)