mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Merge pull request #1422 from pixelfed/frontend-ui-refactor
Frontend ui refactor
This commit is contained in:
commit
aa87edcaab
3 changed files with 4 additions and 4 deletions
2
public/js/status.js
vendored
2
public/js/status.js
vendored
File diff suppressed because one or more lines are too long
|
@ -13,6 +13,6 @@
|
||||||
"/js/loops.js": "/js/loops.js?id=d5c7e9d0d6a44553dd0d",
|
"/js/loops.js": "/js/loops.js?id=d5c7e9d0d6a44553dd0d",
|
||||||
"/js/profile.js": "/js/profile.js?id=da5fe0b642f4c24a6eb2",
|
"/js/profile.js": "/js/profile.js?id=da5fe0b642f4c24a6eb2",
|
||||||
"/js/search.js": "/js/search.js?id=95c893b755e132a1d7e1",
|
"/js/search.js": "/js/search.js?id=95c893b755e132a1d7e1",
|
||||||
"/js/status.js": "/js/status.js?id=8d17b80a439765e35906",
|
"/js/status.js": "/js/status.js?id=9ff4b1402d0616ec7d95",
|
||||||
"/js/timeline.js": "/js/timeline.js?id=31977aa6a7448134f135"
|
"/js/timeline.js": "/js/timeline.js?id=31977aa6a7448134f135"
|
||||||
}
|
}
|
||||||
|
|
|
@ -728,10 +728,10 @@ export default {
|
||||||
type: 'status',
|
type: 'status',
|
||||||
item: this.status.id
|
item: this.status.id
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
setTimeout(function() {
|
|
||||||
swal('Success', 'You have successfully deleted this post', 'success');
|
swal('Success', 'You have successfully deleted this post', 'success');
|
||||||
|
setTimeout(function() {
|
||||||
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');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue