All files / src/app/extensions/product-notifications/pages/account-product-notifications/account-product-notifications-list account-product-notifications-list.component.ts

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

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     6x              
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
 
import { ProductNotification } from '../../../models/product-notification/product-notification.model';
 
type ProductNotificationsColumnsType = 'productImage' | 'product' | 'notification' | 'notificationEditDelete';
 
@Component({
  selector: 'ish-account-product-notifications-list',
  templateUrl: './account-product-notifications-list.component.html',
  styleUrls: ['./account-product-notifications-list.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class AccountProductNotificationsListComponent {
  @Input() productNotifications: ProductNotification[];
 
  @Input() columnsToDisplay: ProductNotificationsColumnsType[] = [
    'productImage',
    'product',
    'notification',
    'notificationEditDelete',
  ];
}