mirror of
https://github.com/janishutz/libreevent.git
synced 2025-11-25 13:24:24 +00:00
some styling for event details view
This commit is contained in:
@@ -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 () {
|
||||||
|
|||||||
@@ -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 );
|
||||||
|
|||||||
@@ -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: {},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user