Add _is_deleted status message to Controller and prompt for button click after paste delete

This commit is contained in:
parthiv-m 2024-10-13 17:45:05 -04:00
parent d69d29f3a9
commit f2b60d3765
4 changed files with 26 additions and 8 deletions

View file

@ -5626,11 +5626,11 @@ jQuery.PrivateBin = (function($, RawDeflate) {
me.initZ();
// if delete token is passed (i.e. paste has been deleted by this
// access), redirect to baseurl after 5 seconds
// access), add an event listener for the 'new' paste button in the alert
if (Model.hasDeleteToken()) {
setTimeout(() => {
$("#new-from-alert").on("click", function () {
UiHelper.reloadHome();
}, 5000);
});
return;
}