mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 14:33:03 +00:00
119602: Port disabling of cookie popup from main
This commit is contained in:
@@ -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));
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user