free seat tracker rewrite

This commit is contained in:
2023-09-30 13:44:07 +02:00
parent fa5be769e2
commit 9e9c4b0ec6
4 changed files with 164 additions and 94 deletions

View File

@@ -398,7 +398,7 @@
// Make call to server to deselect ticket
const options = {
method: 'post',
body: JSON.stringify( { 'id': seat[ 'id' ], 'eventID': this.event.eventID, 'component': seat.component } ),
body: JSON.stringify( { 'id': seat[ 'id' ], 'eventID': this.event.eventID, 'component': seat.componentID } ),
headers: {
'Content-Type': 'application/json',
'charset': 'utf-8'

View File

@@ -48,6 +48,7 @@
self.$refs.notification.cancelNotification( startNotification );
self.$refs.notification.createNotification( 'Your tickets are ready! Starting download...', 10, 'progress', 'normal' );
localStorage.removeItem( 'cart' );
fetch( '/getAPI/reloadData' ).catch( () => {} );
setTimeout( () => {
open( '/tickets/tickets.pdf' );
source.close();