tickera-angular-components 0.0.1-dev.49 → 0.0.1-dev.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6941,7 +6941,6 @@ class DaySelectorGridComponent {
|
|
|
6941
6941
|
this.listEventService = listEventService;
|
|
6942
6942
|
this.toastService = toastService;
|
|
6943
6943
|
effect(() => {
|
|
6944
|
-
this.listEventService.filteredShowId();
|
|
6945
6944
|
if (isPlatformBrowser(this.platformId)) {
|
|
6946
6945
|
this.days.set([]);
|
|
6947
6946
|
this.listEventService.setSelectedDay(null);
|
|
@@ -7415,11 +7414,12 @@ class PerformanceTicketMapComponent {
|
|
|
7415
7414
|
const hit = findElementAtPosition(this.bookingDataService.renderData(), internalPos.x, internalPos.y);
|
|
7416
7415
|
if (!hit)
|
|
7417
7416
|
return;
|
|
7418
|
-
|
|
7419
|
-
this.needsLoginError.emit();
|
|
7420
|
-
return;
|
|
7421
|
-
}
|
|
7417
|
+
const emitNeedsLoginError = this.needsLogin && !this.isLoggedIn;
|
|
7422
7418
|
if (hit.element.type === RoomMapElementType.ZONE) {
|
|
7419
|
+
if (emitNeedsLoginError) {
|
|
7420
|
+
this.needsLoginError.emit();
|
|
7421
|
+
return;
|
|
7422
|
+
}
|
|
7423
7423
|
const zoneId = hit.element.elementId;
|
|
7424
7424
|
const zoneTickets = this.selectionService.getZoneTickets(zoneId);
|
|
7425
7425
|
const selectedTickets = zoneTickets.filter((t) => this.selectionService.isSelected(t));
|
|
@@ -7435,6 +7435,10 @@ class PerformanceTicketMapComponent {
|
|
|
7435
7435
|
}
|
|
7436
7436
|
const ticket = findTicketAtPosition(hit.element, hit.relX, hit.relY);
|
|
7437
7437
|
if (ticket) {
|
|
7438
|
+
if (emitNeedsLoginError) {
|
|
7439
|
+
this.needsLoginError.emit();
|
|
7440
|
+
return;
|
|
7441
|
+
}
|
|
7438
7442
|
this.selectionService.toggle(ticket);
|
|
7439
7443
|
this.selectionChange.emit(this.selectionService.selectedTickets());
|
|
7440
7444
|
}
|