openeuropa / oe_whitelabel

European Union Public License 1.2
2 stars 4 forks source link

Incorrect slimselect warning on Status report page #214

Closed kp77 closed 1 year ago

kp77 commented 1 year ago

After #205, OEWT overrides slim_select module's library paths and uses the required assets from OEBT. The module doesn't detect a slimselect library in the project, so it displays a warning on /admin/reports/status

SLIM SELECT LIBRARY: The library will be loaded from the CDN. Consider using NPM in order to get a local copy of the library. Please, refer to the [module's README](https://git.drupalcode.org/project/slim_select) file for instructions.

This can be confusing, so it would be nice to either change the status of the requirement to OK with some custom message, or simply remove it:

/**
 * Implements hook_requirements_alter().
 */
function oe_whitelabel_helper_requirements_alter(array &$requirements): void {
  unset($requirements['slim_select_library']);
}