All files / app/components/common/language-modal-row language-modal-row.component.ts

100% Statements 6/6
100% Branches 0/0
100% Functions 1/1
100% Lines 6/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29                                1x   94x   94x   94x   94x   94x    
import { CommonModule } from '@angular/common';
import { Component, Input } from '@angular/core';
 
/**
 * Language modal row component, displaying the language name and corresponding
 * flags (even though than can be problematic for some languages if one were to
 * develop an app in many languages since there is not a one-to-one
 * correspondance between flags and languages)
 */
@Component({
  selector: 'app-language-modal-row',
  templateUrl: './language-modal-row.component.html',
  styleUrls: ['./language-modal-row.component.css'],
  standalone: true,
  imports: [CommonModule],
})
export class LanguageModalRowComponent {
  /** Language name */
  @Input() languageName = 'NO LANGUAGE';
  /** Flag selector to be used for the flag icon class */
  @Input() flagSelectors = ['xx'];
  /** Whether or not the row represents the current language */
  @Input() isCurrent = false;
  /** Whether or not the row is the first row */
  @Input() isFirstRow = false;
  /** Whether or not the row is the last row */
  @Input() isLastRow = false;
}