1
0
Fork 0
This commit is contained in:
Daniel Supernault 2019-06-09 11:38:24 -06:00
parent ab3ec39d5d
commit e9c8646137
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 4 additions and 2 deletions

View File

@ -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');
});