How to use the @alfresco/adf-extensions.mergeObjects function in @alfresco/adf-extensions

To help you get started, we’ve selected a few @alfresco/adf-extensions examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Alfresco / alfresco-content-app / src / app / extensions / extension.service.ts View on Github external
loadContentMetadata(config: ExtensionConfig): any {
    const elements = this.loader.getElements(
      config,
      'features.content-metadata-presets'
    );
    let presets = {};
    presets = this.filterDisabled(mergeObjects(presets, ...elements));

    try {
      this.appConfig.config['content-metadata'] = { presets };
    } catch (error) {
      console.error(
        error,
        '- could not change content-metadata from app.config -'
      );
    }

    return { presets };
  }

@alfresco/adf-extensions

Provides extensibility support for ADF applications.

Apache-2.0
Latest version published 24 days ago

Package Health Score

87 / 100
Full package analysis