diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a70584..a511895 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ +**unreleased v0.3.4** + +- Fix: Refresh data tables after deleting any number of entries (corbz/PYRSS-Website#38) +- + **v0.3.3** - Enhancement: Added some refreshing new fonts (sora & atkison hyperlegible) diff --git a/apps/static/js/home/content.js b/apps/static/js/home/content.js index 0134449..49bb920 100644 --- a/apps/static/js/home/content.js +++ b/apps/static/js/home/content.js @@ -179,6 +179,11 @@ async function deleteSelectedContent() { `${arrayToHtmlList(names, false).prop("outerHTML")}`, 12000 ); + + // Multi-deletion can take time, this timeout ensures the refresh is accurate + setTimeout(async () => { + await loadContent(getCurrentlyActiveServer().guild_id); + }, 600); }, null ); diff --git a/apps/static/js/home/filters.js b/apps/static/js/home/filters.js index 38443e2..6acedc4 100644 --- a/apps/static/js/home/filters.js +++ b/apps/static/js/home/filters.js @@ -294,7 +294,10 @@ async function deleteSelectedFilters() { 12000 ); - await loadFilters(getCurrentlyActiveServer().guild_id); + // Multi-deletion can take time, this timeout ensures the refresh is accurate + setTimeout(async () => { + await loadFilters(getCurrentlyActiveServer().guild_id); + }, 600); }, null ); diff --git a/apps/static/js/home/subscriptions.js b/apps/static/js/home/subscriptions.js index 679269e..43a2516 100644 --- a/apps/static/js/home/subscriptions.js +++ b/apps/static/js/home/subscriptions.js @@ -439,7 +439,10 @@ async function deleteSelectedSubscriptions() { 12000 ) - await loadSubscriptions(getCurrentlyActiveServer().guild_id); + // Multi-deletion can take time, this timeout ensures the refresh is accurate + setTimeout(async () => { + await loadSubscriptions(getCurrentlyActiveServer().guild_id); + }, 600); }, null )