style: rename playback button to Play
Co-authored-by: Tom Ernst <tom@citr.one>
This commit was merged in pull request #6.
This commit is contained in:
1 parent
483f4b4acf
commit
3d21bdbff0
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user