various changes to components

This commit is contained in:
janis
2023-09-18 16:14:57 +02:00
parent 130831f050
commit a856f227bc
7 changed files with 16 additions and 8 deletions

View File

@@ -75,7 +75,10 @@
*/
try {
delete this.notifications[ id ];
delete this.queue[ this.queue.findIndex( id ) ];
console.log( this.notifications );
console.log( this.queue.findIndex( id ) );
console.log( this.queue );
delete this.queue[ this.queue.findIndex( id ) - 1 ];
} catch ( error ) {
console.log( 'notification to be deleted is nonexistent or currently being displayed' );
}

View File

@@ -417,6 +417,11 @@
},
getSeatCount () {
this.seatCountInfo[ 'count' ] = document.getElementsByClassName( 'seats' ).length;
for ( let draggable in this.draggables ) {
if ( this.draggables[ draggable ][ 'ticketCount' ] ) {
this.seatCountInfo[ 'count' ] += this.draggables[ draggable ][ 'ticketCount' ];
}
}
},
},
created () {