mirror of
https://github.com/em-squared/5e-drs.git
synced 2025-12-17 15:40:37 +00:00
ajout de feedback sur les ajouts/suppressions dans les bibliothèques et consolidation. see #20
This commit is contained in:
parent
183c7fcaa5
commit
dfb0967b07
16 changed files with 105 additions and 27 deletions
|
|
@ -107,13 +107,11 @@ export default {
|
|||
if (result.notPrintedSpells) {
|
||||
self.$store.commit('mySpells/setNotPrintedSpells', result.notPrintedSpells)
|
||||
}
|
||||
self.alertText = self.$store.state.mySpells.spells.length + " sorts inscrits dans le grimoire."
|
||||
self.alertType = "success"
|
||||
self.alertOpen = true
|
||||
self.$store.commit('setSnackbarText', self.$store.state.mySpells.spells.length + " sorts inscrits dans votre grimoire")
|
||||
self.$store.commit('setIsOpenSnackbar', true)
|
||||
} else {
|
||||
self.alertText = "Le fichier est invalide."
|
||||
self.alertType = "error"
|
||||
self.alertOpen = true
|
||||
self.$store.commit('setSnackbarText', "Le fichier est invalide")
|
||||
self.$store.commit('setIsOpenSnackbar', true)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -137,6 +135,8 @@ export default {
|
|||
confirmDeletion () {
|
||||
this.$store.commit('mySpells/resetSpells')
|
||||
this.confirmDeleteDialog = false
|
||||
this.$store.commit('setSnackbarText', "Votre grimoire a été effacé")
|
||||
this.$store.commit('setIsOpenSnackbar', true)
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue