Fix: Once a paste is deleted, navigate to

the home page after 5 seconds; change type
of the corresponding alert to alert-success
This commit is contained in:
parthiv-m 2024-10-07 17:42:37 -04:00
parent 545ef9f64a
commit d69d29f3a9
3 changed files with 6 additions and 3 deletions

View file

@ -5626,8 +5626,11 @@ jQuery.PrivateBin = (function($, RawDeflate) {
me.initZ();
// if delete token is passed (i.e. paste has been deleted by this
// access), there is nothing more to do
// access), redirect to baseurl after 5 seconds
if (Model.hasDeleteToken()) {
setTimeout(() => {
UiHelper.reloadHome();
}, 5000);
return;
}