style: rename playback button to Play

This commit is contained in:
tom committed 2026-09-12 00:05:29 +02:00
1 parent 483f4b4acf
commit a93cf9c4f6
1 file changed
+1 -1
+1 -1
View File
@@ -51,7 +51,7 @@ function render() {
head.append(names, el('span', 'state', stateName(zone.state)));
const track = el('p', 'track', zone.error || (zone.track.title ? `${zone.track.title}${zone.track.artist ? ' · ' + zone.track.artist : ''}` : 'Kein aktueller Titel'));
const controls = el('div', 'controls');
for (const [icon, label, action] of [['▶','Abspielen','play'], ['Ⅱ','Pause','pause'], ['■','Stopp','stop']]) {
for (const [icon, label, action] of [['▶','Play','play'], ['Ⅱ','Pause','pause'], ['■','Stopp','stop']]) {
const button = el('button', null, `${icon} ${label}`); button.disabled = Boolean(zone.error);
button.onclick = () => act(`/api/zones/${encodeURIComponent(zone.uid)}/transport`, 'POST', {action}); controls.append(button);
}