Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
c0eb22c6e2
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      resources/assets/js/components/PostComponent.vue

+ 2 - 2
resources/assets/js/components/PostComponent.vue

@@ -728,10 +728,10 @@ export default {
               type: 'status',
               item: this.status.id
             }).then(res => {
+              swal('Success', 'You have successfully deleted this post', 'success');
               setTimeout(function() {
-                swal('Success', 'You have successfully deleted this post', 'success');
                 window.location.href = '/';
-              }, 2000);
+              }, 3000);
             }).catch(err => {
               swal('Error', 'Something went wrong. Please try again later.', 'error');
             });