frontend/js/modules/user-notification/list/item/user-notification-list-item.directive.js
Function esnUserNotificationListItem
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;