import { Component, OnInit, Input, ViewChild, Output, EventEmitter } from '@angular/core'; import { SBGArmyList, User, UserArmyListFilter, DoublesDetails } from 'tournee.businesslogic'; import { FeedbackPanelComponent } from '../../feedback-panel/feedback-panel.component'; import { UserListsService } from 'src/app/shared/services/user.lists.service'; import { AttendeesService } from 'src/app/shared/services/attendees.service'; @Component({ selector: 'app-list-selection-and-submission', templateUrl: './list-selection-and-submission.component.html', styleUrls: ['./list-selection-and-submission.component.css'], providers: [ AttendeesService, UserListsService ] }) export class ListSelectionAndSubmissionComponent implements OnInit { @ViewChild('FeedbackPanel') FeedbackPanel:FeedbackPanelComponent; isWorking: boolean = false; @Input() AllowSharing: boolean = false; @Input() YourList: SBGArmyList; @Input() SharedWith: Array = []; @Input() GameSystemId: string; @Input() CompetitionId: string; @Output() OnRefresh = new EventEmitter(); ArmyListFilter: UserArmyListFilter = UserArmyListFilter.create(); ArmyLists: Array = []; Selected: SBGArmyList; constructor() { } ngOnInit() { } SelectionMade($event: SBGArmyList) { this.Selected = $event; } RefreshPage($event: boolean) { this.Selected = null; this.OnRefresh.emit($event); } }