Skip to content

Commit e2be7f1

Browse files
committed
refactor: update save interceptor API by removing unused methods
1 parent 9584349 commit e2be7f1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

adminforth/documentation/docs/tutorial/07-Plugins/02-TwoFactorsAuth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ options: {
366366
}
367367
}
368368
```
369-
> Note: You can use all injections, not only bottom
369+
Note: You can use any injection which executes JS on a page where Save bottom is rendered, not only bottom
370370
371371
Backend (resource hook verification):
372372

adminforth/spa/src/adminforth.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,6 @@ export function useAdminforth() {
228228
const api = frontendAPI as FrontendAPI;
229229
return {
230230
registerSaveInterceptor: (handler: (ctx: { action: 'create'|'edit'; values: any; resource: any; }) => Promise<{ ok: boolean; error?: string | null; extra?: object; }>) => api.registerSaveInterceptor(handler),
231-
runSaveInterceptors: (params: { action: 'create'|'edit'; values: any; resource: any; resourceId: string; }) => api.runSaveInterceptors(params),
232-
clearSaveInterceptors: (resourceId?: string) => api.clearSaveInterceptors(resourceId),
233231
api,
234232
};
235233
}

0 commit comments

Comments
 (0)