feat(platform): sprint 11.5 standardization
Some checks failed
Architecture Governance / architecture (push) Has been cancelled
Some checks failed
Architecture Governance / architecture (push) Has been cancelled
This commit is contained in:
@@ -50,8 +50,31 @@ export class DataSourceResolverService {
|
||||
}
|
||||
|
||||
private resolveSettings(definition: WidgetManifestEntry | undefined, widget: WidgetConfig): Record<string, unknown> {
|
||||
const metadataSettings: Record<string, unknown> = {};
|
||||
|
||||
if (widget.title != null) {
|
||||
metadataSettings['title'] = widget.title;
|
||||
}
|
||||
|
||||
if (widget.subtitle != null) {
|
||||
metadataSettings['subtitle'] = widget.subtitle;
|
||||
}
|
||||
|
||||
if (widget.animation != null) {
|
||||
metadataSettings['animation'] = widget.animation;
|
||||
}
|
||||
|
||||
if (widget.style != null) {
|
||||
metadataSettings['style'] = widget.style;
|
||||
}
|
||||
|
||||
if (widget.permissions != null) {
|
||||
metadataSettings['permissions'] = widget.permissions;
|
||||
}
|
||||
|
||||
return {
|
||||
...(definition?.defaultSettings ?? {}),
|
||||
...metadataSettings,
|
||||
...(widget.props ?? {})
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user