From 0726b2219ec71cb7067eec7ba6f4ce76576b59cc Mon Sep 17 00:00:00 2001 From: ncoronel Date: Tue, 28 Jul 2026 09:53:54 -0300 Subject: [PATCH] feat: add loading overlay and disable actions during PDF generation for tickets --- .../components/ticket/ticket.component.html | 8 +- .../components/ticket/ticket.component.ts | 1 + .../pages/tickets-page/tickets-page.html | 12 +- .../pages/tickets-page/tickets-page.scss | 35 ++++++ .../pages/tickets-page/tickets-page.spec.ts | 116 ++++++++++++++++++ .../pages/tickets-page/tickets-page.ts | 49 +++++--- 6 files changed, 202 insertions(+), 19 deletions(-) diff --git a/src/app/features/store/pages/account-page/pages/tickets-page/components/ticket/ticket.component.html b/src/app/features/store/pages/account-page/pages/tickets-page/components/ticket/ticket.component.html index 37fd036..b7a4373 100644 --- a/src/app/features/store/pages/account-page/pages/tickets-page/components/ticket/ticket.component.html +++ b/src/app/features/store/pages/account-page/pages/tickets-page/components/ticket/ticket.component.html @@ -41,9 +41,15 @@ - + } diff --git a/src/app/features/store/pages/account-page/pages/tickets-page/components/ticket/ticket.component.ts b/src/app/features/store/pages/account-page/pages/tickets-page/components/ticket/ticket.component.ts index 6e07cd4..3687897 100644 --- a/src/app/features/store/pages/account-page/pages/tickets-page/components/ticket/ticket.component.ts +++ b/src/app/features/store/pages/account-page/pages/tickets-page/components/ticket/ticket.component.ts @@ -16,6 +16,7 @@ export class TicketComponent { readonly date = input(null); readonly disabled = input(false); readonly expired = input(false); + readonly isGeneratingPdf = input(false); readonly selected = model(false); readonly viewQr = output(); diff --git a/src/app/features/store/pages/account-page/pages/tickets-page/tickets-page.html b/src/app/features/store/pages/account-page/pages/tickets-page/tickets-page.html index f58632c..2aa3e36 100644 --- a/src/app/features/store/pages/account-page/pages/tickets-page/tickets-page.html +++ b/src/app/features/store/pages/account-page/pages/tickets-page/tickets-page.html @@ -1,7 +1,14 @@

MIS TICKETS

-
+
+ @if (isGeneratingPdf()) { +
+ + Generando PDF... +
+ } + @if (activeTickets().length) {