Skip to content

Commit 9e6d858

Browse files
committed
fix(file): download file link
1 parent c97e1f5 commit 9e6d858

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/Gestion/ExerciseForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
<span class="error-message">{{errors[0]}}</span>
136136
<a v-if="exercise && exercise.file && filename" :href="`${cdnLink}/${exercise.file}`" target="_blank"
137137
class="message message--primary-color"
138-
style="text-decoration: underline; cursor: pointer;">Télécharger le fichier</a>
138+
style="text-decoration: underline; cursor: pointer;" download>Télécharger le fichier</a>
139139
<span class="message message--red" v-if="filename"
140140
style="text-decoration: underline; cursor: pointer;"
141141
@click="deleteFile">Supprimer le fichier</span>

components/Panel/Item/DetailsPanel.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
</button>
2323
</a>
2424

25-
<a v-if="!!exercise.file" :href="`${cdnLink}/${exercise.file}`" target="_blank" class="button-wrapper">
26-
<button class=" button--ternary-color-reverse">
25+
<a v-if="!!exercise.file" :href="`${cdnLink}/${exercise.file}`" class="button-wrapper" download>
26+
<button class="button--ternary-color-reverse">
2727
Télécharger l'exercice
2828
</button>
2929
</a>

0 commit comments

Comments
 (0)