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