some styling for event details view

This commit is contained in:
2023-08-20 11:55:58 +02:00
parent 5505313e3e
commit 4bacd4aa8f
3 changed files with 9 additions and 2 deletions

View File

@@ -91,7 +91,7 @@
methods: { methods: {
setActiveTicket ( id ) { setActiveTicket ( id ) {
sessionStorage.setItem( 'selectedTicket', id ); sessionStorage.setItem( 'selectedTicket', id );
sessionStorage.setItem( 'ticketData', { 'description': this.events[ id ][ 'description' ], 'name': this.events[ id ][ 'name' ], 'locationName': this.events[ id ][ 'locationName' ] } ); sessionStorage.setItem( 'ticketData', JSON.stringify( { 'description': this.events[ id ][ 'description' ], 'name': this.events[ id ][ 'name' ], 'locationName': this.events[ id ][ 'locationName' ] } ) );
sessionStorage.setItem( 'hasSeatplan', this.events[ id ][ 'hasSeatplan' ] ); sessionStorage.setItem( 'hasSeatplan', this.events[ id ][ 'hasSeatplan' ] );
}, },
loadEvents () { loadEvents () {

View File

@@ -302,6 +302,9 @@ export default {
this.$refs.notification.createNotification( 'Please confirm your email address to proceed', 10, 'error', 'high' ); this.$refs.notification.createNotification( 'Please confirm your email address to proceed', 10, 'error', 'high' );
} }
} ); } );
} else {
this.$refs.notification.cancelNotification( prep );
this.$refs.notification.createNotification( 'An error occurred during preparation of payments. Please try again.', 10, 'error', 'high' );
} }
} ).catch( err => { } ).catch( err => {
console.error( err ); console.error( err );

View File

@@ -66,10 +66,14 @@
this.event[ 'banner' ] = localStorage.getItem( 'url' ) + '/eventAssets/' + this.eventID + '-banner.jpg'; this.event[ 'banner' ] = localStorage.getItem( 'url' ) + '/eventAssets/' + this.eventID + '-banner.jpg';
this.event[ 'logo' ] = localStorage.getItem( 'url' ) + '/eventAssets/' + this.eventID + '-logo.jpg'; this.event[ 'logo' ] = localStorage.getItem( 'url' ) + '/eventAssets/' + this.eventID + '-logo.jpg';
this.event[ 'banner' ] = localStorage.getItem( 'url' ) + '/otherAssets/logo.png'; this.event[ 'banner' ] = localStorage.getItem( 'url' ) + '/otherAssets/logo.png';
const eventData = JSON.parse( sessionStorage.getItem( 'ticketData' ) );
this.event.name = eventData[ 'name' ];
this.event.description = eventData[ 'description' ];
this.event.location = eventData[ 'locationName' ];
}, },
data() { data() {
return { return {
event: { 'name': 'TestEvent', 'description': 'This is a description for the TestEvent to test multiline support and proper positioning of the Fields', 'location': 'test', 'date': '2023-07-15', 'currency': 'CHF', 'categories': { '1': { 'price': { '1':25, '2':35 }, 'bg': 'black', 'fg': 'white', 'name': 'Category 1' }, '2': { 'price': { '1':15, '2':20 }, 'bg': 'green', 'fg': 'white', 'name': 'Category 2' } }, 'ageGroups': { '1':{ 'id': 1, 'name':'Child', 'age':'0 - 15.99' }, '2':{ 'id': 2, 'name': 'Adult' } }, 'maxTickets': 2 }, event: {},
} }
} }
}; };