fix #14740: serve playback only to the main window

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
hauke
2026-11-10 13:52:26 +01:00
co-authored by Claude Opus 5.5
parent a74cfa5864
commit 8c47388eee
14 changed files with 624 additions and 124 deletions
+10 -3
View File
@@ -166,9 +166,12 @@
}),
]
refreshList()
// Read on every visit: the settings page is a route of this window, so
// a changed retention period is shown on the way back. Without it the
// "no audio" line just leaves the period out.
getSettings()
.then((settings) => (retentionDays = settings.retention_days))
.catch(() => {})
.catch((err) => console.warn('settings not read:', errorText(err)))
getRecordingState()
.then((state) => (recordingState = state))
.catch((err) => (recordError = errorText(err)))
@@ -514,11 +517,15 @@
>
{/if}
</div>
{:else}
{:else if detail.audio_deleted && retentionDays !== null}
<p class="muted no-audio">
Audio nicht mehr vorhanden – Aufnahmen werden {retentionDays ?? '…'} Tage nach der
Audio nicht mehr vorhanden – Aufnahmen werden {retentionDays} Tage nach der
Transkription gelöscht (<a href="#/settings">Einstellungen</a>).
</p>
{:else if detail.audio_deleted}
<p class="muted no-audio">Audio nicht mehr vorhanden.</p>
{:else}
<p class="muted no-audio">Audio nicht vorhanden.</p>
{/if}
{/if}