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:
@@ -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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user