119602: Port disabling of cookie popup from main

This commit is contained in:
Andreas Awouters
2025-06-30 10:47:37 +02:00
parent 50757247ab
commit b44f74a20a
8 changed files with 27 additions and 7 deletions

View File

@@ -145,7 +145,12 @@ export class BrowserKlaroService extends KlaroService {
*/
this.translateConfiguration();
this.klaroConfig.services = this.filterConfigServices(servicesToHide);
if (!environment.info?.enableCookieConsentPopup) {
this.klaroConfig.services = [];
} else {
this.klaroConfig.services = this.filterConfigServices(servicesToHide);
}
this.lazyKlaro.then(({ setup }) => setup(this.klaroConfig));
});
}