From 14899733c8c5962a8b4ed5c13836f86a34bd29a0 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Fri, 18 Apr 2025 15:37:50 +0000 Subject: [bugfix] new token API issues (#4022) * fix incorrect endpoint being registered for /token/{id} * update the maximum page value for tokens endpoint to 100 * update the available tokens page options * set a default limit of 25 to match the first available settings panel option * ensure OnInvalidateToken() hook is called during token delete --- web/source/settings/views/user/tokens/search.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'web/source/settings') diff --git a/web/source/settings/views/user/tokens/search.tsx b/web/source/settings/views/user/tokens/search.tsx index 87080cc8f..8025c7bb5 100644 --- a/web/source/settings/views/user/tokens/search.tsx +++ b/web/source/settings/views/user/tokens/search.tsx @@ -36,7 +36,7 @@ export default function TokensSearchForm() { // Populate search form using values from // urlQueryParams, to allow paging. const form = { - limit: useTextInput("limit", { defaultValue: urlQueryParams.get("limit") ?? "20" }) + limit: useTextInput("limit", { defaultValue: urlQueryParams.get("limit") ?? "25" }) }; // On mount, trigger search. @@ -93,9 +93,10 @@ export default function TokensSearchForm() { label="Items per page" options={ <> - + - + + } > -- cgit v1.2.3