3
0

Add option to disable on record save notifications per record page

This commit is contained in:
Jože Fortun
2024-02-23 16:42:20 +01:00
parent 4638f1d003
commit 32edb8ef2f
6 changed files with 32 additions and 4 deletions

View File

@@ -8,13 +8,19 @@ interface PartialPage extends Partial<Omit<Page, 'children' | 'meta' | 'blocks'
blocks?: PageBlock[];
meta?: object;
meta?: PageMeta;
createdAt?: string|number|Date;
updatedAt?: string|number|Date;
deletedAt?: string|number|Date;
}
interface PageMeta {
notifications: {
enabled: boolean;
};
}
interface PageConfig {
navItem: {
icon: {
@@ -54,7 +60,11 @@ export class Page {
},
}
public meta: object = {};
public meta: PageMeta = {
notifications: {
enabled: true,
},
};
public createdAt?: Date = undefined;
public updatedAt?: Date = undefined;