arch(sprint1): drive widget registry from manifest
This commit is contained in:
@@ -27,15 +27,28 @@ export class PlatformRuntimeService {
|
||||
|
||||
this.configService.loadBootstrap().pipe(take(1)).subscribe({
|
||||
next: (bootstrap) => {
|
||||
this.widgetRegistryBootstrap.registerDefaults();
|
||||
this.themeEngine.applyTheme(bootstrap.theme);
|
||||
this.brandingEngine.applyBranding(bootstrap.branding);
|
||||
this.runtimeState.markInitialized({
|
||||
localization: bootstrap.localization,
|
||||
featureFlags: bootstrap.featureFlags,
|
||||
permissions: bootstrap.permissions
|
||||
this.widgetRegistryBootstrap.registerFromManifest().subscribe({
|
||||
next: () => {
|
||||
this.themeEngine.applyTheme(bootstrap.theme);
|
||||
this.brandingEngine.applyBranding(bootstrap.branding);
|
||||
this.runtimeState.markInitialized({
|
||||
localization: bootstrap.localization,
|
||||
featureFlags: bootstrap.featureFlags,
|
||||
permissions: bootstrap.permissions
|
||||
});
|
||||
this.initializing = false;
|
||||
},
|
||||
error: () => {
|
||||
this.themeEngine.applyTheme(bootstrap.theme);
|
||||
this.brandingEngine.applyBranding(bootstrap.branding);
|
||||
this.runtimeState.markInitialized({
|
||||
localization: bootstrap.localization,
|
||||
featureFlags: bootstrap.featureFlags,
|
||||
permissions: bootstrap.permissions
|
||||
});
|
||||
this.initializing = false;
|
||||
}
|
||||
});
|
||||
this.initializing = false;
|
||||
},
|
||||
error: () => {
|
||||
this.initializing = false;
|
||||
|
||||
Reference in New Issue
Block a user