mirror of
https://github.com/nimbold/Firelink.git
synced 2026-09-02 14:07:57 +00:00
fix(downloads): allow confirmed credentialless resume
- distinguish redacted session credentials from intrinsic URL authentication - requeue confirmed resumes without saved secrets from the table and Properties window - scope batch overrides to approved rows and harden malformed bridge payloads - add regression coverage and localized confirmation copy
This commit is contained in:
@@ -1236,7 +1236,16 @@ export const PropertiesWindowApp = () => {
|
||||
&& !window.confirm(t($ => $.downloadTable.nonResumableOne))) {
|
||||
return;
|
||||
}
|
||||
void requestAction('pause-resume');
|
||||
const resumeWithoutCredentials = (lifecycleAction === 'resume' || lifecycleAction === 'retry')
|
||||
&& snapshot.credentialsRequired === true;
|
||||
if (resumeWithoutCredentials
|
||||
&& !window.confirm(t($ => $.properties.resumeWithoutCredentialsConfirm))) {
|
||||
return;
|
||||
}
|
||||
void requestAction(
|
||||
'pause-resume',
|
||||
resumeWithoutCredentials ? { resumeWithoutCredentials: true } : undefined,
|
||||
);
|
||||
}}
|
||||
>
|
||||
{lifecycleAction === 'pause' ? <Pause size={14} /> : <Play size={14} />}
|
||||
|
||||
Reference in New Issue
Block a user