Skip to content

Commit

Permalink
Merge pull request #121 from abes-esr/ITEM-76-MESSAGE-AVERTISSEMENT
Browse files Browse the repository at this point in the history
ITEM-76 FEAT ajout de props dans le dialog + utilisation pour supp
  • Loading branch information
EryneKL authored Sep 18, 2024
2 parents dd03e87 + 79d34c3 commit 9180215
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions src/components/Dialog/DialogLancerTraitement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,22 @@ const props = defineProps({
route: {
required: true,
type: String,
},
title: {
required: false,
type: String,
default: 'Lancement du traitement en production'
},
body: {
required: false,
type: String,
default: 'Êtes-vous sûr de vouloir lancer le traitement en production ?<br/> Aucune annulation n\'est possible.'
}
})
const title = ref('Lancement du traitement en production');
const body = ref('Êtes-vous sûr de vouloir lancer le traitement en production ?<br/> Aucune annulation n\'est possible.');
const title = ref(props.title);
const body = ref(props.body);
const isFinished = ref(false);
function confirm() {
emits('launch');
title.value = "Traitement validé";
Expand Down
2 changes: 1 addition & 1 deletion src/views/Suppression/SuppSteps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
</v-col>
</v-row>
</v-container>
<dialog-lancer-traitement v-model="dialog" :is-loading="isLoading" rubrique="Gérer mes suppressions" route="/suppression-tableau" @launch="launchDemande()"></dialog-lancer-traitement>
<dialog-lancer-traitement v-model="dialog" :is-loading="isLoading" rubrique="Gérer mes suppressions" route="/suppression-tableau" body="Le traitement de suppression des exemplaires en base de production est irréversible." @launch="launchDemande()"></dialog-lancer-traitement>
<dialog-suppression v-model="suppDialog" :demande="demande" return-to-accueil></dialog-suppression>
</template>

Expand Down

0 comments on commit 9180215

Please sign in to comment.