Client: Not yet loaded seats now show an hourglass loading spinner

This commit is contained in:
2022-03-05 14:40:09 +01:00
parent 06f9a49731
commit e78e7427ac
3 changed files with 12 additions and 7 deletions
+2
View File
@@ -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 {
+10 -3
View File
@@ -311,9 +311,16 @@ main {
line-height: 1;
&:not(.mio, .libero, .occupato)::before {
font-size: 12px;
content: '';
&:not(.mio, .libero, .occupato) {
&::before {
font-size: 12px;
content: '⏳';
animation: rotating 1s linear infinite;
}
&::after {
content: none;
}
}
&::before {