YetiForceCompany/YetiForceCRM

View on GitHub
public_html/layouts/basic/modules/Calendar/resources/ActivityStateModal.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function updateActivityState has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        updateActivityState: function (currentTarget) {
            let params = {
                module: 'Calendar',
                action: 'ActivityStateAjax',
                record: currentTarget.data('id'),

    Function registerActivityState has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            registerActivityState() {
                const self = this;
                $('.js-activity-buttons button:not(.close)').on('click', function (e) {
                    let currentTarget = $(e.currentTarget),
                        viewName = app.getViewName();

      There are no issues that match your filters.

      Category
      Status