diff --git a/apps/static/js/home/subscriptions.js b/apps/static/js/home/subscriptions.js index 590f525..8664482 100644 --- a/apps/static/js/home/subscriptions.js +++ b/apps/static/js/home/subscriptions.js @@ -289,6 +289,7 @@ async function loadSubscriptions(guildId, page=1, pageSize=null) { const subscriptions = await getSubscriptions(guildId, page, pageSize); subTable.rows.add(subscriptions.results).draw(false); handleSubPagination(page, pageSize, subscriptions.count, subscriptions.next, subscriptions.previous); + handleSubPageInfo(subscriptions.results.length, subscriptions.count); $("#subTable thead .table-select-all").prop("disabled", subscriptions.results.length === 0); console.debug("loading subs, " + subscriptions.results.length + " found"); } @@ -305,6 +306,11 @@ $("#subTablePageSize").on("change", async function() { loadSubscriptions(getCurrentlyActiveServer().guild_id, page, pageSize); }); +function handleSubPageInfo(showing, total) { + $("#subTablePageInfo .pageinfo-showing").text(showing); + $("#subTablePageInfo .pageinfo-total").text(total); +} + // Update the UI pagination options according to the passed data. function handleSubPagination(currentPage, pageSize, totalItems, nextExists, prevExists) { diff --git a/apps/templates/home/index.html b/apps/templates/home/index.html index e0a0215..e50021b 100644 --- a/apps/templates/home/index.html +++ b/apps/templates/home/index.html @@ -104,10 +104,10 @@