Explorar o código

Use ajax error handler

sbkwgh %!s(int64=8) %!d(string=hai) anos
pai
achega
eb6eefc9de
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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))
 			}
 		}
 	}