refresh tables on multi-delete
All checks were successful
Build and Push Docker Image / build (push) Successful in 17s

This commit is contained in:
Corban-Lee Jones 2024-08-31 15:01:26 +01:00
parent bbc497bdb9
commit d6d7ffa7a1
4 changed files with 18 additions and 2 deletions

View File

@ -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** **v0.3.3**
- Enhancement: Added some refreshing new fonts (sora & atkison hyperlegible) - Enhancement: Added some refreshing new fonts (sora & atkison hyperlegible)

View File

@ -179,6 +179,11 @@ async function deleteSelectedContent() {
`${arrayToHtmlList(names, false).prop("outerHTML")}`, `${arrayToHtmlList(names, false).prop("outerHTML")}`,
12000 12000
); );
// Multi-deletion can take time, this timeout ensures the refresh is accurate
setTimeout(async () => {
await loadContent(getCurrentlyActiveServer().guild_id);
}, 600);
}, },
null null
); );

View File

@ -294,7 +294,10 @@ async function deleteSelectedFilters() {
12000 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 null
); );

View File

@ -439,7 +439,10 @@ async function deleteSelectedSubscriptions() {
12000 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 null
) )