CiviWiki/OpenCiviWiki

View on GitHub
project/core/templates/static/js/notifications.js

Summary

Maintainability
A
1 hr
Test Coverage

Function render_notifications has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var render_notifications = function(data) {
    var unreadCount = parseInt(data.unread_count);
    if (unreadCount === 0) {
        $('#notify-count-wrapper').addClass('hide');
        $('#notify-icon').html('notifications_none').removeClass('active');
Severity: Minor
Found in project/core/templates/static/js/notifications.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status