From 4ab79a4b874a7975eb041bbaa3c68a1527c60429 Mon Sep 17 00:00:00 2001 From: Adi Makkar Date: Thu, 23 Nov 2023 23:47:50 -0500 Subject: [PATCH] wip --- .../events/components/event-card/event-card.component.ts | 4 ++-- .../events/components/event-list/event-list.component.html | 2 +- .../events/components/event-list/event-list.component.ts | 1 - src/app/features/events/models/eventcardview.ts | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/app/features/events/components/event-card/event-card.component.ts b/src/app/features/events/components/event-card/event-card.component.ts index d968154b..4b934512 100644 --- a/src/app/features/events/components/event-card/event-card.component.ts +++ b/src/app/features/events/components/event-card/event-card.component.ts @@ -33,7 +33,7 @@ export class EventCardComponent { this.model.confirmed = !this.model.confirmed; - if (this.model.confirmed && this.model.declined && this.view === EventCardView.Large) + if (this.model.confirmed && this.model.declined) this.model.declined = false; if (this.model.confirmed) @@ -46,7 +46,7 @@ export class EventCardComponent { this.model.declined = !this.model.declined; - if (this.model.declined && this.model.confirmed && this.view === EventCardView.Large) + if (this.model.declined && this.model.confirmed) this.model.confirmed = false; if (this.model.declined) diff --git a/src/app/features/events/components/event-list/event-list.component.html b/src/app/features/events/components/event-list/event-list.component.html index f66c3591..0ca9ebc2 100644 --- a/src/app/features/events/components/event-list/event-list.component.html +++ b/src/app/features/events/components/event-list/event-list.component.html @@ -9,7 +9,7 @@
- +
diff --git a/src/app/features/events/components/event-list/event-list.component.ts b/src/app/features/events/components/event-list/event-list.component.ts index 8e74ade4..298fa220 100644 --- a/src/app/features/events/components/event-list/event-list.component.ts +++ b/src/app/features/events/components/event-list/event-list.component.ts @@ -13,7 +13,6 @@ export class EventListComponent { @Input() isLoading: boolean = false; @Input() loadingCount: number = 3; @Input() view: string | EventCardView = EventCardView.Small; - @Output() confirm = new EventEmitter(); @Output() decline = new EventEmitter(); diff --git a/src/app/features/events/models/eventcardview.ts b/src/app/features/events/models/eventcardview.ts index 67837a95..9d305067 100644 --- a/src/app/features/events/models/eventcardview.ts +++ b/src/app/features/events/models/eventcardview.ts @@ -1,5 +1,5 @@ export enum EventCardView { - Large = 'Large', - Small = 'Small', + Large = 'large', + Small = 'small', } \ No newline at end of file