Fix: ▶-Abspielen-Button auf lokal-Cards wieder da (bei Icon-only-Umbau verloren gegangen)
This commit is contained in:
@ -422,6 +422,18 @@
|
||||
}
|
||||
}
|
||||
|
||||
// — Player-Bedienung (T-021) —
|
||||
async function abspielen(b: Book): Promise<void> {
|
||||
if (!isLocal(b)) return
|
||||
error = ''
|
||||
try {
|
||||
player = await playerLoad(b.asin, b.title)
|
||||
info = ''
|
||||
} catch (e) {
|
||||
error = String(e)
|
||||
}
|
||||
}
|
||||
|
||||
// Beim Start: auth prüfen, Download-Events abonnieren, Abstammung + Abgleich.
|
||||
$effect(() => {
|
||||
playerSnapshot().then((s) => (player = s)).catch(() => {})
|
||||
@ -600,6 +612,7 @@
|
||||
<button class="primary" title="Speichern" onclick={() => saveAlter(b)}><Icon name="check" size={14} /></button>
|
||||
<button class="ghost" title="Abbrechen" onclick={() => (editingAlter = null)}><Icon name="x" size={13} /></button>
|
||||
{:else if isLocal(b)}
|
||||
<button class="primary" title="Abspielen" onclick={() => abspielen(b)}><Icon name="play" size={15} /></button>
|
||||
<button class="ghost" title="Löschen" onclick={() => loeschen(b)}><Icon name="trash" size={14} /></button>
|
||||
<button class="ghost" title="Altersnote setzen" onclick={() => startEditAlter(b)}><Icon name="pencil" size={13} /></button>
|
||||
{:else if streamOnly[b.asin]}
|
||||
|
||||
Reference in New Issue
Block a user