From c0eb22c6e2f6b57574ac072f0316068dc058e291 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 18 Jun 2019 13:45:28 -0600 Subject: [PATCH] Fixes #1417 --- resources/assets/js/components/PostComponent.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/components/PostComponent.vue b/resources/assets/js/components/PostComponent.vue index 92d74ef93..b038674cb 100644 --- a/resources/assets/js/components/PostComponent.vue +++ b/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'); });