diff --git a/apps/dsp-app/src/app/workspace/resource/operations/add-value/add-value.component.ts b/apps/dsp-app/src/app/workspace/resource/operations/add-value/add-value.component.ts index b76d4e7d3d..700dfee4c5 100644 --- a/apps/dsp-app/src/app/workspace/resource/operations/add-value/add-value.component.ts +++ b/apps/dsp-app/src/app/workspace/resource/operations/add-value/add-value.component.ts @@ -107,6 +107,7 @@ export class AddValueComponent implements OnInit, AfterViewInit { ngAfterViewInit() { setTimeout(() => { this.createModeActive = true; + this._cd.markForCheck(); }, 0); } diff --git a/libs/vre/shared/app-config/src/lib/app-config/app-config.service.spec.ts b/libs/vre/shared/app-config/src/lib/app-config/app-config.service.spec.ts index 26323f1137..3ac0f54dfa 100644 --- a/libs/vre/shared/app-config/src/lib/app-config/app-config.service.spec.ts +++ b/libs/vre/shared/app-config/src/lib/app-config/app-config.service.spec.ts @@ -26,7 +26,7 @@ describe('AppConfigService with dev config', () => { geonameToken: 'geoname_token', iriBase: 'http://rdfh.ch', instrumentation: { - environment: 'dev', + environment: 'local-dev', rollbar: { enabled: false, }, @@ -50,7 +50,7 @@ describe('AppConfigService with dev config', () => { }); it('should process the fully specified config (dev mode)', async () => { - expect(service.dspConfig.environment).toEqual('dev'); + expect(service.dspConfig.environment).toEqual('local-dev'); expect(service.dspConfig.color).toEqual('accent'); expect(service.dspConfig.production).toEqual(false); expect(service.dspApiConfig.apiProtocol).toEqual('http'); @@ -65,7 +65,7 @@ describe('AppConfigService with dev config', () => { expect(service.dspApiConfig.logErrors).toEqual(true); expect(service.dspAppConfig.geonameToken).toEqual('geoname_token'); expect(service.dspAppConfig.iriBase).toEqual('http://rdfh.ch'); - expect(service.dspInstrumentationConfig.environment).toEqual('dev'); + expect(service.dspInstrumentationConfig.environment).toEqual('local-dev'); expect(service.dspInstrumentationConfig.rollbar.enabled).toEqual(false); expect(service.dspInstrumentationConfig.rollbar.accessToken).toBeUndefined(); }); @@ -115,7 +115,7 @@ describe('AppConfigService with prod config', () => { it('should process the fully specified config (prod mode)', async () => { expect(service.dspConfig.release).toEqual('2023.04.02'); - expect(service.dspConfig.environment).toEqual('production'); + expect(service.dspConfig.environment).toEqual('prod'); expect(service.dspConfig.color).toEqual('primary'); expect(service.dspConfig.production).toEqual(true); expect(service.dspApiConfig.apiProtocol).toEqual('https'); @@ -130,7 +130,7 @@ describe('AppConfigService with prod config', () => { expect(service.dspApiConfig.logErrors).toEqual(true); expect(service.dspAppConfig.geonameToken).toEqual('geoname_token'); expect(service.dspAppConfig.iriBase).toEqual('http://rdfh.ch'); - expect(service.dspInstrumentationConfig.environment).toEqual('production'); + expect(service.dspInstrumentationConfig.environment).toEqual('prod'); expect(service.dspInstrumentationConfig.rollbar.enabled).toEqual(true); expect(service.dspInstrumentationConfig.rollbar.accessToken).toEqual('rollbar_token'); });