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:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user