Parcourir la source

Use ajax error handler

sbkwgh il y a 8 ans
Parent
commit
eb6eefc9de
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/components/ReplyingTo.vue

+ 2 - 0
src/components/ReplyingTo.vue

@@ -21,6 +21,7 @@
 
 <script>
 	import InfoTooltip from './InfoTooltip'
+	import AjaxErrorHandler from '../assets/js/errorHandler'
 
 	export default {
 		name: 'ReplyingTo',
@@ -40,6 +41,7 @@
 					.then((res) => {
 						this.post = res.data
 					})
+					.catch(AjaxErrorHandler(this.$store))
 			}
 		}
 	}