Add option to disable on record save notifications per record page
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user