Skip to content
Snippets Groups Projects
Commit 1b682060 authored by Sophie Richard's avatar Sophie Richard
Browse files

fix(card/tile): downloadDirect false empeche le passage en telechargement

parent 96ab6490
No related merge requests found
......@@ -2,8 +2,9 @@
# 1.9.2
- fix(card/tile): l'attribut `downloadDirect` à false empêche le téléchargement
- fix: le contrôle sur le nom des classes CSS RemixIcon empêche l'intégration d'icônes custom
- fix(select): erreur à l'initialisation du select avec une liste d'options undefined
- fix(select): erreur à l'initialisation du select si la liste d'options est undefined
# 1.9.1
......
......@@ -55,16 +55,25 @@
"styles": [
"node_modules/@gouvfr/dsfr/dist/dsfr/dsfr.css",
"node_modules/@gouvfr/dsfr/dist/utility/utility.css"
],
"compodoc": true,
"compodocArgs": [
"-e",
"json",
"-d",
".",
"--silent",
"--minimal",
"--disablePrivate",
"--disableInternal",
"--disableLifeCycleHooks"
]
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"projects/ngx-dsfr-components/**/*.ts",
"projects/ngx-dsfr-components/**/*.html"
]
"lintFilePatterns": ["projects/ngx-dsfr-components/**/*.ts", "projects/ngx-dsfr-components/**/*.html"]
}
}
}
......@@ -81,9 +90,7 @@
"node_modules/@gouvfr/dsfr/dist/dsfr/dsfr.css",
"node_modules/@gouvfr/dsfr/dist/utility/utility.css"
],
"scripts": [
"node_modules/@gouvfr/dsfr/dist/dsfr/dsfr.module.min.js"
]
"scripts": ["node_modules/@gouvfr/dsfr/dist/dsfr/dsfr.module.min.js"]
}
}
}
......
......@@ -129,6 +129,7 @@ export const DownloadAuto: Story = {
description: downloadDescription,
detail: downloadDetail,
link: downloadPath,
downloadDirect: false,
download: true,
downloadAssessFile: true,
},
......
......@@ -107,7 +107,7 @@
<edu-link-download
*ngIf="download"
[item]="itemLink"
[downloadDirect]="download"
[downloadDirect]="downloadDirect"
[downloadAssessFile]="downloadAssessFile"
[langCode]="downloadLangCode"
(linkSelect)="onLinkSelect()">
......
<!-- Lien de téléchargement-->
<a
*ngIf="downloadDirect"
[attr.aria-controls]="item.ariaControls || null"
[attr.aria-disabled]="disabled"
[attr.aria-label]="item.ariaLabel || null"
......
......@@ -20,7 +20,6 @@ export class LinkDownloadComponent {
* Active la version download avec l'attribut download.
* Permet l'utilisation de `downloadAssessFile` et `langCode`
*/
// downloadDirect à la place de download pour être raccord avec le Panel
@Input() downloadDirect: boolean | string = false;
/** Option de détail de téléchargement renseigné automatiquement.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment