File tree 10 files changed +54
-6
lines changed
10 files changed +54
-6
lines changed Original file line number Diff line number Diff line change 7
7
</template >
8
8
9
9
<script >
10
+ import { useStore } from " @/stores"
11
+
10
12
export default {
11
13
name: " BaseLayout" ,
12
14
components: {},
15
+ setup () {
16
+ return {
17
+ store: useStore (),
18
+ }
19
+ },
13
20
created () {
14
21
this .$router .isReady ().then (() => {
15
22
if (this .$route .query .debug === " parcours" ) {
Original file line number Diff line number Diff line change 31
31
import ArrowRight from " @/context/caidf/icons/arrow-right"
32
32
import Check from " @/context/caidf/icons/check-circle"
33
33
import Chapters from " @/../lib/chapters"
34
+ import { useStore } from " @/stores"
34
35
35
36
export default {
36
37
name: " Breadcrumb" ,
37
38
components: { Check, ArrowRight },
39
+ setup () {
40
+ return {
41
+ store: useStore (),
42
+ }
43
+ },
38
44
computed: {
39
45
chapters () {
40
46
return this .$state .chapters (
Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ import DroitMixin from "@/mixins/droit-mixin"
144
144
import DroitHeader from " @/components/droit-header"
145
145
import Check from " @/context/caidf/icons/check"
146
146
import Export from " @/context/caidf/icons/export"
147
+ import { useStore } from " @/stores"
147
148
148
149
export default {
149
150
name: " DroitsDetails" ,
@@ -161,8 +162,9 @@ export default {
161
162
patrimoineCaptured: Boolean ,
162
163
ressourcesYearMinusTwoCaptured: Boolean ,
163
164
},
164
- data () {
165
+ setup () {
165
166
return {
167
+ store: useStore (),
166
168
brokenLinkButtonState: " show" ,
167
169
}
168
170
},
Original file line number Diff line number Diff line change 15
15
16
16
<script >
17
17
import Chapters from " @/../lib/chapters"
18
+ import { useStore } from " @/stores"
18
19
19
20
export default {
20
21
name: " TitreChapitre" ,
22
+ setup () {
23
+ return {
24
+ store: useStore (),
25
+ }
26
+ },
21
27
computed: {
22
28
title () {
23
29
return this .getTitleByRoute (this .$route )
Original file line number Diff line number Diff line change @@ -28,15 +28,17 @@ import {
28
28
getEtablissements ,
29
29
} from " @/../lib/benefits/etablissements"
30
30
import SmallBackButton from " @/context/caidf/components/small-back-button"
31
+ import { useStore } from " @/stores"
31
32
32
33
export default {
33
34
name: " Lieux" ,
34
35
components: {
35
36
SmallBackButton,
36
37
Etablissement,
37
38
},
38
- data : function () {
39
+ setup () {
39
40
return {
41
+ store: useStore (),
40
42
benefit: null ,
41
43
list: [],
42
44
updating: true ,
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import LoadingModal from "@/components/loading-modal"
36
36
import ResultatsMixin from " @/mixins/resultats"
37
37
import ProgressBar from " @/components/progress-bar"
38
38
import Breadcrumb from " @/context/caidf/components/breadcrumb"
39
+ import { useStore } from " @/stores"
39
40
40
41
export default {
41
42
name: " ResultatBase" ,
@@ -45,6 +46,11 @@ export default {
45
46
LoadingModal,
46
47
},
47
48
mixins: [ResultatsMixin],
49
+ setup () {
50
+ return {
51
+ store: useStore (),
52
+ }
53
+ },
48
54
computed: {
49
55
situation : function () {
50
56
return this .store .situation
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import ResultatsMixin from "@/mixins/resultats"
23
23
import StatisticsMixin from " @/mixins/statistics"
24
24
import ResultatBase from " @/context/caidf/views/resultats/resultat-base"
25
25
import SmallBackButton from " @/context/caidf/components/small-back-button"
26
+ import { useStore } from " @/stores"
26
27
27
28
export default {
28
29
name: " SimulationResultatsDetail" ,
@@ -32,6 +33,11 @@ export default {
32
33
DroitsDetails,
33
34
},
34
35
mixins: [ResultatsMixin, StatisticsMixin],
36
+ setup () {
37
+ return {
38
+ store: useStore (),
39
+ }
40
+ },
35
41
computed: {
36
42
situation : function () {
37
43
return this .store .situation
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ import ErrorSaveBlock from "@/components/error-save-block"
70
70
import ResultatsMixin from " @/mixins/resultats"
71
71
import StatisticsMixin from " @/mixins/statistics"
72
72
import ResultatBase from " @/context/caidf/views/resultats/resultat-base"
73
+ import { useStore } from " @/stores"
73
74
74
75
export default {
75
76
name: " SimulationResultats" ,
@@ -80,6 +81,11 @@ export default {
80
81
ErrorSaveBlock,
81
82
},
82
83
mixins: [ResultatsMixin, StatisticsMixin],
84
+ setup () {
85
+ return {
86
+ store: useStore (),
87
+ }
88
+ },
83
89
mounted : function () {
84
90
if (this .mock (this .$route .params .droitId )) {
85
91
return
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ import Breadcrumb from "@/context/caidf/components/breadcrumb"
55
55
import ProgressBar from " @/components/progress-bar"
56
56
import Hint from " @/lib/hint"
57
57
import WarningMessage from " @/components/warning-message"
58
+ import { useStore } from " @/stores"
58
59
59
60
export default {
60
61
name: " Simulation" ,
@@ -65,7 +66,7 @@ export default {
65
66
TitreChapitre,
66
67
Progress,
67
68
},
68
- data () {
69
+ setup () {
69
70
const helpingContentPerChapter = {
70
71
profil: {
71
72
text: ` Ces informations sont nécessaires au traitement de votre demande. Vos données ne seront pas conservées à l’issue de la simulation.` ,
@@ -96,6 +97,7 @@ export default {
96
97
},
97
98
}
98
99
return {
100
+ store: useStore (),
99
101
helpingContentPerChapter,
100
102
window ,
101
103
}
Original file line number Diff line number Diff line change
1
+ import { useStore } from "@/stores"
2
+
1
3
export default {
2
4
computed : {
3
5
hasExistingSituation : function ( ) {
4
- return this . store . passSanityCheck
6
+ const store = useStore ( )
7
+ return store . passSanityCheck
5
8
} ,
6
9
} ,
7
10
methods : {
8
11
newSituation : function ( ) {
9
- this . store . clear ( this . $route . query . external_id )
12
+ const store = useStore ( )
13
+ store . clear ( this . $route . query . external_id )
10
14
this . next ( )
11
15
} ,
12
16
next : function ( ) {
13
- this . store . verifyBenefitVariables ( )
17
+ const store = useStore ( )
18
+ store . verifyBenefitVariables ( )
14
19
this . $push ( )
15
20
} ,
16
21
} ,
You can’t perform that action at this time.
0 commit comments