programandoarg/pg_rails

View on GitHub
pg_layout/app/javascript/utils/utils.ts

Summary

Maintainability
A
1 hr
Test Coverage

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

export function flashMessage (message, flashType = 'warning', toast = false) {
  const el = document.createElement('div')
  const toastClasses = toast ? 'position-absolute pg-toast' : ''
  let iconClasses
  let alertClassSuffix
Severity: Minor
Found in pg_layout/app/javascript/utils/utils.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status