1 parent
5d57ba5d8f
commit
6c76121863
3 files changed
+40
-61
No files matched your search
+2
-2
@@ -114,7 +114,7 @@ els('.card[data-room]').forEach((node) => {
|
||||
avr: node.classList.contains('avr'),
|
||||
level: el('[data-role="level"]', node),
|
||||
meter: el('[data-role="meter"]', node),
|
||||
actions: el('[data-role="actions"]', node),
|
||||
navigation: el('[data-role="navigation"]', node),
|
||||
toggle: el('[data-role="group"]', node),
|
||||
toggleLabel: el('[data-role="group-label"]', node),
|
||||
prev: el('[data-role="prev"]', node),
|
||||
@@ -188,7 +188,7 @@ function paintTransport(room) {
|
||||
room.play.disabled = !room.available || !state;
|
||||
room.play.setAttribute(
|
||||
'aria-label', `${room.node.querySelector('h2').textContent}: ${playing ? 'pause' : 'play'}`);
|
||||
room.actions.hidden = room.avr
|
||||
room.navigation.hidden = room.avr
|
||||
? !state
|
||||
: !(room.onSpotify && room.spotifyAccount && !room.grouped);
|
||||
if (room.prev) room.prev.disabled = !room.available;
|
||||
|
||||
Reference in new issue
Block a user