Skip to content

Commit

Permalink
Ajoute une notif en cas d'echec de suppression de gestionnaire_site
Browse files Browse the repository at this point in the history
Issue: #205710
Change-Id: I10c04868c91a69d55fb2286ef2286f437293f946
  • Loading branch information
Clément GRENOT committed Feb 12, 2024
1 parent e2876a4 commit 92d04bc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion client-ng/src/components/ManageSites.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
</a>
</b-modal>
<ModalFormGestionnaireSite v-on:gestionnaireSiteUpdate="onGestionnaireSiteUpdated" ref="modalFormGestionnaireSite"/>
<notifications group="remocra" position="top right" animation-type="velocity" :duration="3000"/>
</div>
</template>

Expand Down Expand Up @@ -164,7 +165,16 @@
this.onGestionnaireSiteUpdated()
this.$bvModal.hide('confirmDelete')
})
});
}).catch(
()=>{
this.$notify({
group: 'remocra',
type: 'error',
title: 'Erreur',
text: 'Une erreur est survenue, le site n\'a pas pu être supprimé'
});
}
);
},
filtering(){
this.filterNomSiteValue = document.getElementById("inputNomSite").value.toUpperCase();
Expand Down

0 comments on commit 92d04bc

Please sign in to comment.