Client: Not yet loaded seats now show an hourglass loading spinner
This commit is contained in:
@@ -77,11 +77,13 @@ export async function createSeatWidget($roomGrid, roomId) {
|
||||
if (occupiedBy.length === 0) {
|
||||
const confirmResponse = confirm('Occupare il posto?')
|
||||
if (confirmResponse) {
|
||||
$seat.classList.remove('libero')
|
||||
Database.occupySeat(seatId)
|
||||
}
|
||||
} else if (occupiedBy.length === 1 && occupiedBy[0] === user.id) {
|
||||
const answer = confirm('Lasciare veramente il posto?')
|
||||
if (answer) {
|
||||
$seat.classList.remove('mio')
|
||||
Database.leaveSeat(seatId)
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user