1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-04 20:06:06 +02:00

enhance(frontend): improve modlog pagination

This commit is contained in:
syuilo
2025-06-28 21:18:36 +09:00
parent b8e8f3ad25
commit 3c5ed0ffbb
4 changed files with 144 additions and 74 deletions

View File

@@ -277,6 +277,14 @@ export function usePagination<Endpoint extends keyof Misskey.Endpoints, T extend
reload();
}
function updateCtxPartial(ctx: Partial<PagingCtx<Endpoint>>) {
props.ctx = {
...props.ctx,
...ctx,
};
reload();
}
if (props.autoInit !== false) {
onMounted(() => {
init();
@@ -303,5 +311,6 @@ export function usePagination<Endpoint extends keyof Misskey.Endpoints, T extend
releaseQueue,
error,
updateCtx,
updateCtxPartial,
};
}