fabiocaccamo/django-admin-interface

View on GitHub
admin_interface/static/admin_interface/foldable-apps/foldable-apps.js

Summary

Maintainability
A
1 hr
Test Coverage

Function onload has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    window.onload = function() {
        for (let moduleEl of document.querySelectorAll('.admin-interface.foldable-apps [class^="app-"].module')) {
            // apply collapsed value from localstorage value
            let moduleAppClass = null;
            let moduleCollapsedClass = 'collapsed';

    There are no issues that match your filters.

    Category
    Status