Skip to content

Commit 97ee5e5

Browse files
authored
Merge pull request #301 from dnum-mi/feat/customize-mandatory-links
feat: ✨ Permet la personnalisation des liens obligatoires
2 parents 37793e0 + 1191e5e commit 97ee5e5

File tree

1 file changed

+21
-23
lines changed

1 file changed

+21
-23
lines changed

src/components/DsfrFooter/DsfrFooter.vue

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,27 @@ export default defineComponent({
5757
type: Array,
5858
default: () => [],
5959
},
60+
mandatoryLinks: {
61+
type: Array,
62+
default: (props) => [
63+
{
64+
label: `Accessibilité : ${props.a11yCompliance}`,
65+
to: props.a11yComplianceLink,
66+
},
67+
{
68+
label: 'Mentions légales',
69+
to: props.legalLink,
70+
},
71+
{
72+
label: 'Données personnelles',
73+
to: props.personalDataLink,
74+
},
75+
{
76+
label: 'Gestion des cookies',
77+
to: props.cookiesLink,
78+
},
79+
],
80+
},
6081
ecosystemLinks: {
6182
type: Array,
6283
default: () => [
@@ -81,29 +102,6 @@ export default defineComponent({
81102
82103
},
83104
84-
data () {
85-
return {
86-
mandatoryLinks: [
87-
{
88-
label: `Accessibilité : ${this.a11yCompliance}`,
89-
to: this.a11yComplianceLink,
90-
},
91-
{
92-
label: 'Mentions légales',
93-
to: this.legalLink,
94-
},
95-
{
96-
label: 'Données personnelles',
97-
to: this.personalDataLink,
98-
},
99-
{
100-
label: 'Gestion des cookies',
101-
to: this.cookiesLink,
102-
},
103-
],
104-
}
105-
},
106-
107105
computed: {
108106
allLinks () {
109107
return [

0 commit comments

Comments
 (0)