Feedback: Icon-Buttons — Haus/Wolke-Chips, Download-Pfeil auf laden, Papierkorb auf löschen, Play-Icon
This commit is contained in:
@ -14,6 +14,7 @@
|
||||
type Book,
|
||||
type DlItem,
|
||||
} from './lib/audible'
|
||||
import Icon from './lib/Icon.svelte'
|
||||
|
||||
type View = 'loading' | 'login' | 'library'
|
||||
type SortKey = 'added' | 'title' | 'author' | 'runtime' | 'percent'
|
||||
@ -373,9 +374,12 @@
|
||||
<div class="muted small">{b.authors}</div>
|
||||
<div class="chips">
|
||||
{#if isLocal(b)}
|
||||
<span class="chip ok" title="book.m4b liegt lokal vor">lokal</span>
|
||||
{:else if b.is_finished}
|
||||
<span class="chip done">fertig</span>
|
||||
<span class="chip ok" title="book.m4b liegt lokal vor"><Icon name="home" size={13} /> lokal</span>
|
||||
{:else}
|
||||
<span class="chip" title="In deiner Audible-Bibliothek (online)"><Icon name="cloud" size={13} /> Bibliothek</span>
|
||||
{/if}
|
||||
{#if b.is_finished && !isLocal(b)}
|
||||
<span class="chip done" title="Buch abgehört"><Icon name="play" size={12} /> fertig</span>
|
||||
{/if}
|
||||
{#if b.runtime_length_min > 0}<span class="chip">{fmtRuntime(b.runtime_length_min)}</span>{/if}
|
||||
{#if d && d.status === 'failed'}<span class="chip err" title={d.msg}>Fehlgeschlagen</span>{/if}
|
||||
@ -396,7 +400,7 @@
|
||||
class="ghost"
|
||||
onclick={() => (info = 'Wiedergabe folgt mit M2 — diesen Titel liefert Audible nur zum Streamen.')}
|
||||
>
|
||||
▶ Abspielen
|
||||
<Icon name="play" size={14} /> Abspielen
|
||||
</button>
|
||||
<span class="muted small">nur Streaming</span>
|
||||
{:else if dlg === 'running' || dlg === 'queued' || dlg === 'decrypting'}
|
||||
@ -405,16 +409,16 @@
|
||||
</button>
|
||||
{#if dlg === 'queued'}<span class="muted small">wartet…</span>{/if}
|
||||
{:else if d && d.status === 'failed'}
|
||||
<button class="ghost" onclick={() => laden(b)}>Nochmal laden</button>
|
||||
<button class="ghost" onclick={() => loeschen(b)}>Löschen</button>
|
||||
<button class="ghost" onclick={() => laden(b)}><Icon name="download" size={14} /> Nochmal laden</button>
|
||||
<button class="ghost" onclick={() => loeschen(b)}><Icon name="trash" size={14} /> Löschen</button>
|
||||
<span class="muted small" title={d.msg}>{d.msg.slice(0, 60)}</span>
|
||||
{:else if d && d.status === 'done'}
|
||||
<button class="ghost" onclick={() => loeschen(b)}>Löschen</button>
|
||||
<button class="ghost" onclick={() => loeschen(b)}><Icon name="trash" size={14} /> Löschen</button>
|
||||
{:else if d && d.status === 'cancelled'}
|
||||
<button class="ghost" onclick={() => laden(b)}>Laden</button>
|
||||
<button class="ghost" onclick={() => loeschen(b)}>Löschen</button>
|
||||
<button class="ghost" onclick={() => laden(b)}><Icon name="download" size={14} /> Laden</button>
|
||||
<button class="ghost" onclick={() => loeschen(b)}><Icon name="trash" size={14} /> Löschen</button>
|
||||
{:else if !isLocal(b)}
|
||||
<button class="primary" onclick={() => laden(b)}>Laden</button>
|
||||
<button class="primary" onclick={() => laden(b)}><Icon name="download" size={14} /> Laden</button>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user