All files / app/features/history/components/picture-pending-card picture-pending-card.component.ts

100% Statements 9/9
100% Branches 0/0
100% Functions 2/2
100% Lines 8/8

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 232x   2x 2x                 2x 16x 16x   16x     3x      
import { PENDING_TYPE_LABELS } from '../../../../shared/constants/pending-type-labels';
import { PendingGroup } from '../../services/pictures-history.service';
import { ChangeDetectionStrategy, Component, input, output } from '@angular/core';
import { IconComponent } from '@drevo-web/ui';
 
@Component({
    selector: 'app-picture-pending-card',
    imports: [IconComponent],
    templateUrl: './picture-pending-card.component.html',
    styleUrl: './picture-pending-card.component.scss',
    changeDetection: ChangeDetectionStrategy.OnPush,
})
export class PicturePendingCardComponent {
    readonly group = input.required<PendingGroup>();
    protected readonly pendingLabels = PENDING_TYPE_LABELS;
 
    readonly pictureClick = output<number>();
 
    emitPictureClick(): void {
        this.pictureClick.emit(this.group().pictureId);
    }
}