fix #14740: fixed backend url per build, key bound to its server
- the backend URL is no longer a setting: one constant per build (release/dev) in src-tauri/src/backend.rs; Settings shows the server read-only; an old backend_url in settings.json is ignored - the stored key records the backend it was created for; a key of another backend is discarded before any use and never stored - a refused key is discarded only if it still is the stored one - the keyring is never called while the settings are locked - one upload per call at a time, also visible after a view switch - opener plugin without its link-click script (it also ran in the remote login page); a login error says to reload the login page Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -273,6 +273,12 @@
|
||||
return parts.join(' · ')
|
||||
}
|
||||
|
||||
// Also while an upload started elsewhere (e.g. before switching views)
|
||||
// still runs in the app.
|
||||
let isUploading = $derived(
|
||||
detail !== null && (uploading.includes(detail.call.id) || detail.uploading),
|
||||
)
|
||||
|
||||
// A failed start (e.g. missing key) also marks the call failed; its
|
||||
// error is then shown once, in the failure box.
|
||||
let shownActionError = $derived(actionError !== detail?.call.error ? actionError : '')
|
||||
@@ -361,11 +367,11 @@
|
||||
{:else if call.status === 'done'}
|
||||
<button
|
||||
class="btn primary"
|
||||
disabled={!call.transcribed_at || uploading.includes(call.id)}
|
||||
disabled={!call.transcribed_at || isUploading}
|
||||
title={call.transcribed_at ? 'Transkript ins CRM hochladen' : 'Noch kein Transkript'}
|
||||
onclick={uploadClick}
|
||||
>
|
||||
{uploading.includes(call.id)
|
||||
{isUploading
|
||||
? 'wird hochgeladen…'
|
||||
: call.uploaded_at
|
||||
? 'Erneut hochladen'
|
||||
|
||||
Reference in New Issue
Block a user