File tree Expand file tree Collapse file tree 5 files changed +12
-26
lines changed
personalization-webcomponents/src Expand file tree Collapse file tree 5 files changed +12
-26
lines changed Original file line number Diff line number Diff line change @@ -296,10 +296,12 @@ function _saveChecklistAcceptedDSE() {
296
296
});
297
297
const body = JSON .stringify ({
298
298
title: lebenslageTitle .value ,
299
- lebenslageId : lebenslageId .value ,
299
+ situationId : lebenslageId .value ,
300
300
checklistItems: checklistItemsDtos ,
301
301
});
302
302
303
+ console .log (body );
304
+
303
305
fetch (url , {
304
306
method: " POST" ,
305
307
headers: {
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ export default interface Checklist {
4
4
id : string ;
5
5
title : string ;
6
6
lhmExtId : string ;
7
+ situationId : string ;
7
8
checklistItems : ChecklistItem [ ] ;
8
9
lastUpdate : Date ;
9
10
}
Original file line number Diff line number Diff line change 9
9
<img
10
10
width =" 56px"
11
11
height =" 56px"
12
- :src =" getChecklistIconByTitle (checklist.title )"
12
+ :src =" getChecklistIconBySituationId (checklist.situationId )"
13
13
alt =" checklist-icon"
14
14
/>
15
15
</div >
69
69
<script setup lang="ts">
70
70
import type Checklist from " @/api/persservice/Checklist.ts" ;
71
71
72
- import { MucCard } from " @muenchen/muc-patternlab-vue" ;
73
- import { computed } from " vue" ;
72
+ import {MucCard } from " @muenchen/muc-patternlab-vue" ;
73
+ import {computed } from " vue" ;
74
74
75
75
import ChecklistitemListitem from " @/components/ChecklistitemListitem.vue" ;
76
76
import MucChip from " @/components/common/MucChip.vue" ;
77
- import {
78
- getChecklistIconByTitle ,
79
- QUERY_PARAM_CHECKLIST_ID ,
80
- } from " @/util/Constants.ts" ;
77
+ import {getChecklistIconBySituationId , QUERY_PARAM_CHECKLIST_ID ,} from " @/util/Constants.ts" ;
81
78
82
79
const props = defineProps <{
83
80
checklist: Checklist ;
Original file line number Diff line number Diff line change 2
2
<muc-intro
3
3
tagline =" Checkliste"
4
4
:title =" checklist.title"
5
- :img =" getChecklistIconByTitle (checklist.title )"
5
+ :img =" getChecklistIconBySituationId (checklist.situationId )"
6
6
imgAlt =" "
7
7
>
8
8
<div
@@ -57,7 +57,7 @@ import { MucIntro } from "@muenchen/muc-patternlab-vue";
57
57
import { computed , onMounted } from " vue" ;
58
58
59
59
import MucChip from " @/components/common/MucChip.vue" ;
60
- import { getChecklistIconByTitle } from " @/util/Constants.ts" ;
60
+ import {getChecklistIconBySituationId } from " @/util/Constants.ts" ;
61
61
62
62
const props = defineProps <{
63
63
checklist: Checklist ;
Original file line number Diff line number Diff line change @@ -10,22 +10,8 @@ export const QUERY_PARAM_CHECKLIST_ID = "cl-id";
10
10
11
11
let ACCESS_TOKEN : string | undefined = undefined ;
12
12
13
- export function getChecklistIconByTitle ( checklistTitle : string ) {
14
- return {
15
- "Ich habe wenig Geld." :
16
- "https://stadt.muenchen.de/dam/Home/lhm_common/service-navigator/10482730.svg" ,
17
- "Ich will umziehen." :
18
- "https://stadt.muenchen.de/dam/Home/lhm_common/service-navigator/10482700.svg" ,
19
- "Ich manage eine Familie." :
20
- "https://stadt.muenchen.de/dam/Home/lhm_common/service-navigator/10483310.svg" ,
21
- Einwanderung :
22
- "https://stadt.muenchen.de/dam/Home/lhm_common/service-navigator/10483311.svg" ,
23
- Umzug :
24
- "https://stadt.muenchen.de/dam/Home/lhm_common/service-navigator/10482700.svg" ,
25
- Test : "https://stadt.muenchen.de/dam/Home/lhm_common/service-navigator/10483310.svg" ,
26
- title3 :
27
- "https://stadt.muenchen.de/dam/Home/lhm_common/service-navigator/10483310.svg" ,
28
- } [ checklistTitle ] ;
13
+ export function getChecklistIconBySituationId ( situationId : string ) {
14
+ return `https://stadt.muenchen.de/dam/Home/lhm_common/service-navigator/${ situationId } .svg` ;
29
15
}
30
16
31
17
export function getAPIBaseURL ( ) : string {
You can’t perform that action at this time.
0 commit comments