Skip to content

Commit

Permalink
Merge pull request #128 from abes-esr/develop
Browse files Browse the repository at this point in the history
develop to main
  • Loading branch information
jvk88511334 authored Sep 27, 2024
2 parents 1d741a3 + df268a0 commit f612013
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/MenuDownloadFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@
<!-- FICHIER RESULTAT SUPP -->
<v-list-item-title>Télécharger le fichier résultat</v-list-item-title>
</v-list-item>
<v-list-item v-if="isSauvegardeAvailable" @click="downloadFile('fichier_sauvegarde', '.txt')">
<v-list-item-title>Télécharger le fichier de sauvegarde .txt</v-list-item-title>
</v-list-item>
</v-list>
</v-menu>
</v-btn>
Expand Down Expand Up @@ -95,6 +98,7 @@ const isEnrichiAvailable = computed(() =>
(idEtatCurrentDemande.value >= 5 && props.demande.type === 'SUPP')
)
const isResultatAvailable = computed(() => idEtatCurrentDemande.value >= 7 && idEtatCurrentDemande.value !== 8)
const isSauvegardeAvailable = computed(() => idEtatCurrentDemande.value >= 7)
onMounted(() => {
itemService.getEtatsDemande()
Expand Down

0 comments on commit f612013

Please sign in to comment.