mirror of
				https://github.com/em-squared/5e-drs.git
				synced 2025-10-31 13:34:21 +00:00 
			
		
		
		
	ajout de feedback sur les mises à jour de créations. see #20
This commit is contained in:
		
							parent
							
								
									a854071c7d
								
							
						
					
					
						commit
						183c7fcaa5
					
				
					 5 changed files with 33 additions and 0 deletions
				
			
		|  | @ -181,6 +181,8 @@ export default { | |||
|     updateMagicItemInTreasureChest () { | ||||
|       if (this.isMagicItemInTreasureChest) { | ||||
|         this.$store.commit('myMagicItems/updateMagicItem', this.magicItem) | ||||
|         this.$store.commit('setSnackbarText', "L'objet a été mis à jour dans la bibliothèque") | ||||
|         this.$store.commit('setIsOpenSnackbar', true) | ||||
|       } | ||||
|     }, | ||||
| 
 | ||||
|  |  | |||
|  | @ -384,6 +384,8 @@ export default { | |||
|     updateMonsterInBestiary () { | ||||
|       if (this.isMonsterInBestiary) { | ||||
|         this.$store.commit('myMonsters/updateMonster', this.monster) | ||||
|         this.$store.commit('setSnackbarText', "Le monstre a été mis à jour dans votre bestiaire") | ||||
|         this.$store.commit('setIsOpenSnackbar', true) | ||||
|       } | ||||
|     }, | ||||
| 
 | ||||
|  |  | |||
|  | @ -224,6 +224,8 @@ export default { | |||
|     updateSpellInSpellBook () { | ||||
|       if (this.isSpellInSpellBook) { | ||||
|         this.$store.commit('mySpells/updateSpell', this.spell) | ||||
|         this.$store.commit('setSnackbarText', "Le sort a été mis à jour dans votre grimoire") | ||||
|         this.$store.commit('setIsOpenSnackbar', true) | ||||
|       } | ||||
|     }, | ||||
| 
 | ||||
|  |  | |||
|  | @ -39,6 +39,13 @@ | |||
|       </v-sheet> | ||||
|     </v-bottom-sheet> | ||||
| 
 | ||||
|     <v-snackbar v-model="$store.state.isOpenSnackbar"> | ||||
|       {{ $store.state.snackbarText }} | ||||
|       <v-btn color="red" text @click="$store.commit('setIsOpenSnackbar', true)"> | ||||
|         Fermer | ||||
|       </v-btn> | ||||
|     </v-snackbar> | ||||
| 
 | ||||
|   </v-app> | ||||
| </template> | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Maxime Moraine
						Maxime Moraine