ManageIQ/manageiq-ui-classic

View on GitHub
app/javascript/forms/form-buttons.jsx

Summary

Maintainability
A
1 hr
Test Coverage

Function FormButtons has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function FormButtons(props) {
  const primaryTitle = props.customLabel || (props.newRecord ? __('Add') : __('Save'));
  const primaryHandler = (props.newRecord ? props.addClicked : props.saveClicked) || props.addClicked || props.saveClicked;

  // NOTE: These strings will be translated by <MiqButton />
Severity: Minor
Found in app/javascript/forms/form-buttons.jsx - About 1 hr to fix

'btnType' is missing in props validation
Open

  const { btnType } = props;

For more information visit Source: http://eslint.org/docs/rules/

There are no issues that match your filters.

Category
Status