diff --git a/framework/core/js/src/admin/AdminApplication.ts b/framework/core/js/src/admin/AdminApplication.ts index 301662cdfe..5a712ddb12 100644 --- a/framework/core/js/src/admin/AdminApplication.ts +++ b/framework/core/js/src/admin/AdminApplication.ts @@ -37,6 +37,8 @@ export interface AdminApplicationData extends ApplicationData { extensions: Record; settings: Record; modelStatistics: Record; + displayNameDrivers: string[]; + slugDrivers: Record; } export default class AdminApplication extends Application { diff --git a/framework/core/js/src/admin/components/AdminPage.tsx b/framework/core/js/src/admin/components/AdminPage.tsx index 658fd53f39..80c663364a 100644 --- a/framework/core/js/src/admin/components/AdminPage.tsx +++ b/framework/core/js/src/admin/components/AdminPage.tsx @@ -60,7 +60,7 @@ export type HTMLInputTypes = export interface CommonSettingsItemOptions extends Mithril.Attributes { setting: string; - label: Mithril.Children; + label?: Mithril.Children; help?: Mithril.Children; className?: string; } @@ -137,6 +137,8 @@ export type AdminHeaderAttrs = AdminHeaderOptions & Partial>; +export type SaveSubmitEvent = SubmitEvent & { redraw: boolean }; + export default abstract class AdminPage extends Page { settings: MutableSettings = {}; loading: boolean = false; @@ -162,7 +164,7 @@ export default abstract class AdminPage): Mithril.Children { + submitButton(): Mithril.Children { return (