fix(cloud): W10-approved reassign-owner copy; Cancel focused when you give away your own access

This commit is contained in:
Neil
2026-11-09 15:30:21 -08:00
parent 2e1d5123a4
commit 64ca9caa47
2 changed files with 5 additions and 4 deletions
@@ -120,16 +120,17 @@ export function CloudWorkspaceConfirmDialog({
)
: t(
'auto.components.cloudWorkspaces.reassignBody',
'They can then share, archive or hand it on.'
'They can then change who can see it, archive it or make someone else the owner.'
)}
</DialogDescription>
)}
</DialogHeader>
<DialogFooter>
<Button type="button" variant="ghost" onClick={onCancel}>
{/* Giving away your own access starts on Cancel, so Enter cannot do it by accident. */}
<Button type="button" variant="ghost" onClick={onCancel} autoFocus={losesManagement}>
{t('auto.components.cloudWorkspaces.cancel', 'Cancel')}
</Button>
<Button type="button" onClick={onConfirm} autoFocus>
<Button type="button" onClick={onConfirm} autoFocus={!losesManagement}>
{pending.kind === 'private'
? t('auto.components.cloudWorkspaces.makePrivate', 'Make private')
: t('auto.components.cloudWorkspaces.makeOwner', 'Make owner')}
+1 -1
View File
@@ -20726,7 +20726,7 @@
"private": "Private",
"privateTooltip": "Private — only {{name}} can open it",
"privateTooltipYou": "Private — only you can see it",
"reassignBody": "They can then share, archive or hand it on.",
"reassignBody": "They can then change who can see it, archive it or make someone else the owner.",
"reassignLosesManagement": "You won't be able to manage this workspace after this.",
"reassignOwner": "Reassign owner",
"reassignTitle": "Make {{name}} the owner?",