From a6a65800a4e6c805d04bdf4e37d23a0f8656896a Mon Sep 17 00:00:00 2001 From: padreug Date: Fri, 1 Aug 2025 21:58:35 +0200 Subject: [PATCH] feat: Update PurchaseTicketDialog to enhance ticket purchase confirmation - Modify PurchaseTicketDialog.vue to improve the ticket purchase success message and display a ticket icon. - Add a button for users to easily navigate to their tickets area. - Refactor the layout for better visual presentation of ticket information. --- .../events/PurchaseTicketDialog.vue | 21 ++++++++++++------- src/components/layout/Navbar.vue | 1 - 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/components/events/PurchaseTicketDialog.vue b/src/components/events/PurchaseTicketDialog.vue index c273c1d..330a82c 100644 --- a/src/components/events/PurchaseTicketDialog.vue +++ b/src/components/events/PurchaseTicketDialog.vue @@ -6,7 +6,7 @@ import { Button } from '@/components/ui/button' import { Badge } from '@/components/ui/badge' import { useTicketPurchase } from '@/composables/useTicketPurchase' import { useAuth } from '@/composables/useAuth' -import { User, Wallet, CreditCard, Zap } from 'lucide-vue-next' +import { User, Wallet, CreditCard, Zap, Ticket } from 'lucide-vue-next' interface Props { event: { @@ -222,16 +222,18 @@ onUnmounted(() => {

Ticket Purchased Successfully!

- Your ticket has been purchased. Here's your ticket QR code: + Your ticket has been purchased and is now available in your tickets area.

-
-
- Ticket QR code -
-

Ticket ID

-
+
+
+
+ +
+
+

Ticket ID

+

{{ purchasedTicketId }}

@@ -239,6 +241,9 @@ onUnmounted(() => {
+ diff --git a/src/components/layout/Navbar.vue b/src/components/layout/Navbar.vue index a6d7569..c67e99d 100644 --- a/src/components/layout/Navbar.vue +++ b/src/components/layout/Navbar.vue @@ -27,7 +27,6 @@ const showProfileDialog = ref(false) const navigation = computed(() => [ { name: t('nav.home'), href: '/' }, { name: t('nav.events'), href: '/events' }, - { name: 'My Tickets', href: '/my-tickets' }, { name: t('nav.support'), href: '/support' }, ])