linagora/openpaas-esn

View on GitHub
frontend/js/modules/user-notification/list/item/user-notification-list-item.directive.js

Summary

Maintainability
A
1 hr
Test Coverage

Function esnUserNotificationListItem has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function esnUserNotificationListItem(_, $compile, esnUserNotificationTemplateProviderRegistry) {
    function link(scope, element) {
      var provider = esnUserNotificationTemplateProviderRegistry.get(scope.notification.category);
      var notificationTemplate = provider && provider.template || 'esn-user-notification-external';
      var forceClosePopoverOnClick = provider && provider.forceClosePopoverOnClick || false;

    There are no issues that match your filters.

    Category
    Status