import { Component, OnInit, Input } from '@angular/core'; import { ArmyListsSummary_Competition, ArmyListsSummary } from 'tournee.businesslogic'; @Component({ selector: 'app-selectable-listing-lists-review', templateUrl: './selectable-listing-lists-review.component.html', styleUrls: ['./selectable-listing-lists-review.component.css'] }) export class SelectableListingListsReviewComponent implements OnInit { @Input() Competition: ArmyListsSummary_Competition; current_display: string = 'pending'; ListsToDisplay: Array = []; constructor() { } ngOnInit() { this.ListsToDisplay = this.Competition.Pending; } setPending() { this.current_display = 'pending'; this.ListsToDisplay = this.Competition.Pending; } setApproved() { this.current_display = 'approved'; this.ListsToDisplay = this.Competition.Approved; } setRejected() { this.current_display = 'rejected'; this.ListsToDisplay = this.Competition.Rejected; } }