From d0fc6a3307f02894daf3528c07532ce2f54e533a Mon Sep 17 00:00:00 2001 From: Sonia Sandler <66797193+SoniaSandler@users.noreply.github.com> Date: Mon, 21 Oct 2024 15:01:54 -0400 Subject: [PATCH] fix: update Updater button names to fit in message box (#9497) * fix: update Updater button names to fit in message box Signed-off-by: Sonia Sandler --- packages/main/src/plugin/updater.spec.ts | 4 ++-- packages/main/src/plugin/updater.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/main/src/plugin/updater.spec.ts b/packages/main/src/plugin/updater.spec.ts index 070d0746ee32e..81f2ad1ad07e6 100644 --- a/packages/main/src/plugin/updater.spec.ts +++ b/packages/main/src/plugin/updater.spec.ts @@ -419,7 +419,7 @@ describe('expect update command to depends on context', async () => { expect(messageBoxMock.showMessageBox).toHaveBeenCalledWith({ cancelId: 2, - buttons: ['Update now', 'View release notes', 'Remind me later', 'Do not show again'], + buttons: ['Update now', `What's new`, 'Remind me later', `Don't show again`], message: 'A new version v@debug-next of Podman Desktop is available. Do you want to update your current version v@debug?', title: 'Update Available now', @@ -435,7 +435,7 @@ describe('expect update command to depends on context', async () => { expect(messageBoxMock.showMessageBox).toHaveBeenCalledWith({ cancelId: 2, - buttons: ['Update now', 'View release notes', 'Cancel'], + buttons: ['Update now', `What's new`, 'Cancel'], message: 'A new version v@debug-next of Podman Desktop is available. Do you want to update your current version v@debug?', title: 'Update Available now', diff --git a/packages/main/src/plugin/updater.ts b/packages/main/src/plugin/updater.ts index 82ab91fb293e0..60d072646b5b3 100644 --- a/packages/main/src/plugin/updater.ts +++ b/packages/main/src/plugin/updater.ts @@ -219,9 +219,9 @@ export class Updater { let buttons: string[]; if (context === 'startup') { - buttons = ['Update now', 'View release notes', 'Remind me later', 'Do not show again']; + buttons = ['Update now', `What's new`, 'Remind me later', `Don't show again`]; } else { - buttons = ['Update now', 'View release notes', 'Cancel']; + buttons = ['Update now', `What's new`, 'Cancel']; } const result = await this.messageBox.showMessageBox({