mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 22:41:27 +00:00
Closes #1368
This commit is contained in:
parent
ab3ec39d5d
commit
e9c8646137
1 changed files with 4 additions and 2 deletions
|
@ -728,8 +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() {
|
||||||
window.location.href = '/';
|
swal('Success', 'You have successfully deleted this post', 'success');
|
||||||
|
window.location.href = '/';
|
||||||
|
}, 2000);
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
swal('Error', 'Something went wrong. Please try again later.', 'error');
|
swal('Error', 'Something went wrong. Please try again later.', 'error');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue