From 531d1c62e87708c8a21b18b3e42e97e93bf5ea69 Mon Sep 17 00:00:00 2001 From: Denis Golovin Date: Thu, 9 Apr 2026 15:49:08 -0400 Subject: [PATCH] fix: change order of 'Allow' and 'Deny' button in confirmation dialog (#16961) Signed-off-by: Denis Golovin (cherry picked from commit 5a33ac7c6216fb990801ff0ea5f7d28bfed2fc27) --- packages/main/src/plugin/authentication.spec.ts | 2 +- packages/main/src/plugin/authentication.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/main/src/plugin/authentication.spec.ts b/packages/main/src/plugin/authentication.spec.ts index 04fd0f953d3..76ecc34a8af 100644 --- a/packages/main/src/plugin/authentication.spec.ts +++ b/packages/main/src/plugin/authentication.spec.ts @@ -487,7 +487,7 @@ test('getSession prompts for allowance when accessing session without prior deci expect.objectContaining({ title: 'Allow Access', message: expect.stringContaining('Extension 2'), - buttons: ['Deny', 'Allow'], + buttons: ['Allow', 'Deny'], }), ); diff --git a/packages/main/src/plugin/authentication.ts b/packages/main/src/plugin/authentication.ts index 0ecf0c36439..38d2ae267cc 100644 --- a/packages/main/src/plugin/authentication.ts +++ b/packages/main/src/plugin/authentication.ts @@ -334,7 +334,7 @@ export class AuthenticationImpl { const allowRsp = await this.messageBox.showMessageBox({ title: 'Allow Access', message: `The extension '${requestingExtension.label}' wants to access the ${providerData?.label ?? providerId} account '${accountLabel}'.`, - buttons: ['Deny', 'Allow'], + buttons: ['Allow', 'Deny'], type: 'info', });