diff options
| author | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-05-20 22:12:03 +0200 |
|---|---|---|
| committer | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2025-05-28 13:25:41 +0200 |
| commit | 5682491e173acd3741238245ea86be4e70c8911c (patch) | |
| tree | ee1082ab7935606d83b62594e64d4b428dca987f | |
| parent | be5c47a71b7d5886046271fbfde41b8406d688ee (diff) | |
| download | mullvadvpn-5682491e173acd3741238245ea86be4e70c8911c.tar.xz mullvadvpn-5682491e173acd3741238245ea86be4e70c8911c.zip | |
Make "Update available" system notification navigate to upgrade route
| -rw-r--r-- | desktop/packages/mullvad-vpn/src/shared/notifications/update-available.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/packages/mullvad-vpn/src/shared/notifications/update-available.ts b/desktop/packages/mullvad-vpn/src/shared/notifications/update-available.ts index 60fdb9cff8..a199d077f6 100644 --- a/desktop/packages/mullvad-vpn/src/shared/notifications/update-available.ts +++ b/desktop/packages/mullvad-vpn/src/shared/notifications/update-available.ts @@ -1,8 +1,8 @@ import { sprintf } from 'sprintf-js'; import { messages } from '../../shared/gettext'; +import { RoutePath } from '../../shared/routes'; import { AppVersionInfoSuggestedUpgrade } from '../daemon-rpc-types'; -import { getDownloadUrl } from '../version'; import { SystemNotification, SystemNotificationCategory, @@ -28,10 +28,10 @@ export class UpdateAvailableNotificationProvider implements SystemNotificationPr category: SystemNotificationCategory.newVersion, severity: SystemNotificationSeverityType.medium, action: { - type: 'navigate-external', + type: 'navigate-internal', link: { text: messages.pgettext('notifications', 'Upgrade'), - to: getDownloadUrl(this.context.suggestedIsBeta ?? false), + to: RoutePath.appUpgrade, }, }, presentOnce: { value: true, name: this.constructor.name }, |
