From 646599447e0001ab7966d896e12dc634817a4771 Mon Sep 17 00:00:00 2001 From: Geoffrey Karnbach Date: Mon, 25 Nov 2024 15:45:08 +0100 Subject: [PATCH] Live Preview: Add possibility to disable the feature in the config from the backend --- apps/damap-frontend/src/app/services/config.service.spec.ts | 2 ++ .../components/dmp/dmp-actions/dmp-actions.component.html | 1 + .../lib/components/dmp/dmp-actions/dmp-actions.component.ts | 1 + libs/damap/src/lib/components/dmp/dmp.component.html | 3 ++- libs/damap/src/lib/components/dmp/dmp.component.ts | 6 +++++- libs/damap/src/lib/domain/config.ts | 1 + libs/damap/src/lib/mocks/config-service-mocks.ts | 1 + 7 files changed, 13 insertions(+), 2 deletions(-) diff --git a/apps/damap-frontend/src/app/services/config.service.spec.ts b/apps/damap-frontend/src/app/services/config.service.spec.ts index d09344403..80e031ec8 100644 --- a/apps/damap-frontend/src/app/services/config.service.spec.ts +++ b/apps/damap-frontend/src/app/services/config.service.spec.ts @@ -59,6 +59,7 @@ describe('ConfigService', () => { authUser: '', personSearchServiceConfigs: [], fitsServiceAvailable: false, + livePreviewAvailable: true, }; mockOAuthService.loadDiscoveryDocumentAndTryLogin.and.returnValue( @@ -115,6 +116,7 @@ describe('ConfigService', () => { authUser: '', personSearchServiceConfigs: [], fitsServiceAvailable: false, + livePreviewAvailable: true, }; service['config'] = mockConfig; diff --git a/libs/damap/src/lib/components/dmp/dmp-actions/dmp-actions.component.html b/libs/damap/src/lib/components/dmp/dmp-actions/dmp-actions.component.html index 3d5d6e00a..0ec7a2e1b 100644 --- a/libs/damap/src/lib/components/dmp/dmp-actions/dmp-actions.component.html +++ b/libs/damap/src/lib/components/dmp/dmp-actions/dmp-actions.component.html @@ -65,6 +65,7 @@ {{ "button.version" | translate }}