mirror of
				https://github.com/em-squared/5e-drs.git
				synced 2025-10-30 21:24:18 +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
				
			
		|  | @ -32,6 +32,8 @@ export default new Vuex.Store({ | |||
|     isThemeDark: false, | ||||
|     isOpenAboutDialog: false, | ||||
|     isOpenSupportDialog: false, | ||||
|     isOpenSnackbar: false, | ||||
|     snackbarText: '' | ||||
|   }, | ||||
| 
 | ||||
|   getters: { | ||||
|  | @ -43,6 +45,7 @@ export default new Vuex.Store({ | |||
|     isThemeDark: state => state.isThemeDark, | ||||
|     isOpenAboutDialog: state => state.isOpenAboutDialog, | ||||
|     isOpenSupportDialog: state => state.isOpenSupportDialog, | ||||
|     isOpenSnackbar: state => state.isOpenSnackbar, | ||||
|   }, | ||||
| 
 | ||||
|   actions: { | ||||
|  | @ -70,6 +73,12 @@ export default new Vuex.Store({ | |||
|     isOpenSupportDialog: ({ commit }, payload) => { | ||||
|       commit('setIsOpenSupportDialog', payload) | ||||
|     }, | ||||
|     isOpenSnackbar: ({ commit }, payload) => { | ||||
|       commit('setIsOpenSnackbar', payload) | ||||
|     }, | ||||
|     snackbarText: ({ commit }, payload) => { | ||||
|       commit('setSnackbarText', payload) | ||||
|     }, | ||||
|   }, | ||||
| 
 | ||||
|   mutations: { | ||||
|  | @ -99,5 +108,16 @@ export default new Vuex.Store({ | |||
|     setIsOpenSupportDialog: (state, payload) => { | ||||
|       state.isOpenSupportDialog = payload | ||||
|     }, | ||||
|     setIsOpenSnackbar: (state, payload) => { | ||||
|       state.isOpenSnackbar = payload | ||||
|       if (payload === true) { | ||||
|         setTimeout(function () { | ||||
|           state.isOpenSnackbar = false | ||||
|         }, 5000) | ||||
|       } | ||||
|     }, | ||||
|     setSnackbarText: (state, payload) => { | ||||
|       state.snackbarText = payload | ||||
|     }, | ||||
|   }, | ||||
| }) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Maxime Moraine
						Maxime Moraine