From e9c86461372ca07b85fb83758aa1b060ea07921b Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 9 Jun 2019 11:38:24 -0600 Subject: [PATCH] Closes #1368 --- resources/assets/js/components/PostComponent.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/components/PostComponent.vue b/resources/assets/js/components/PostComponent.vue index aa5e0bb84..5d62618a4 100644 --- a/resources/assets/js/components/PostComponent.vue +++ b/resources/assets/js/components/PostComponent.vue @@ -728,8 +728,10 @@ export default { type: 'status', item: this.status.id }).then(res => { - swal('Success', 'You have successfully deleted this post', 'success'); - window.location.href = '/'; + setTimeout(function() { + swal('Success', 'You have successfully deleted this post', 'success'); + window.location.href = '/'; + }, 2000); }).catch(err => { swal('Error', 'Something went wrong. Please try again later.', 'error'); });