Skip to content

Commit

Permalink
fix handling for events
Browse files Browse the repository at this point in the history
  • Loading branch information
sansan88 committed Nov 22, 2023
1 parent 3de2b84 commit f66b812
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 26 deletions.
10 changes: 0 additions & 10 deletions src/app/pages/event/events/events.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,6 @@ <h3>
</ion-note>
</ion-item>

<ion-item-options side="start">
<ion-item-option color="success" *ngIf="event.status === false || event.status === null"
(click)="toggleItem(item, true, event)">
<ion-icon slot="icon-only" name="checkmark-circle"></ion-icon>
</ion-item-option>
<ion-item-option color="danger" *ngIf="event.status === true || event.status === null"
(click)="toggleItem(item, false, event)">
<ion-icon slot="icon-only" name="close-circle"></ion-icon>
</ion-item-option>
</ion-item-options>

</ion-item-sliding>
</ion-list>
Expand Down
12 changes: 6 additions & 6 deletions src/app/pages/event/events/events.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ export class EventsPage implements OnInit {
`Set Status ${status} for user ${this.user.uid} and club ${event.clubId} and event ${event.id}`
);

/*await this.eventService.setTeamEventAttendeeStatus(
await this.eventService.setClubEventAttendeeStatus(
this.user.uid,
status,
event.teamId,
event.clubId,
event.id
);*/
);
this.presentToast();
}

Expand All @@ -190,12 +190,12 @@ export class EventsPage implements OnInit {
console.log(
`Set Status ${status} for user ${this.user.uid} and club ${event.clubId} and event ${event.id}`
);
/*await this.eventService.setTeamEventAttendeeStatus(
await this.eventService.setClubEventAttendeeStatus(
this.user.uid,
status,
event.teamId,
event.clubId,
event.id
);*/
);
this.presentToast();
}

Expand Down
11 changes: 1 addition & 10 deletions src/app/pages/helfer/helfer/helfer.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,7 @@ <h3>
</ion-note>
</ion-item>

<ion-item-options side="start">
<ion-item-option color="success" *ngIf="event.status === false || event.status === null"
(click)="toggleItem(item, true, event)">
<ion-icon slot="icon-only" name="checkmark-circle"></ion-icon>
</ion-item-option>
<ion-item-option color="danger" *ngIf="event.status === true || event.status === null"
(click)="toggleItem(item, false, event)">
<ion-icon slot="icon-only" name="close-circle"></ion-icon>
</ion-item-option>
</ion-item-options>


</ion-item-sliding>
</ion-list>
Expand Down

0 comments on commit f66b812

Please sign in to comment.