Use custom data provider method for "delete_media"

This is not a REST endpoint, so it's better to use a custom method, see
https://marmelab.com/react-admin/DataProviders.html#adding-custom-methods

Change-Id: I256286949e77b998f759f671b2d4e9790f8ca39c
This commit is contained in:
Manuel Stahl
2024-04-24 10:13:56 +02:00
parent f55e02730e
commit ec0fc14b68
9 changed files with 175 additions and 149 deletions

32
src/i18n/index.d.ts vendored
View File

@@ -87,6 +87,22 @@ interface SynapseTranslationMessages extends TranslationMessages {
};
};
};
delete_media: {
name: string;
fields: {
before_ts: string;
size_gt: string;
keep_profiles: string;
};
action: {
send: string;
send_success: string;
send_failure: string;
};
helper: {
send: string;
};
};
resources: {
users: {
name: string;
@@ -252,22 +268,6 @@ interface SynapseTranslationMessages extends TranslationMessages {
open: string;
};
};
delete_media: {
name: string;
fields: {
before_ts: string;
size_gt: string;
keep_profiles: string;
};
action: {
send: string;
send_success: string;
send_failure: string;
};
helper: {
send: string;
};
};
protect_media?: {
action: {
create: string;