diff options
| author | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-05-20 11:27:33 +0200 |
|---|---|---|
| committer | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2025-05-28 13:25:41 +0200 |
| commit | b5b89ac31ee89f5675a20633a5edcafb97c77448 (patch) | |
| tree | 387453a465ab18a4531283c1176fc75d2820069c | |
| parent | 0508114f2b27004dd870e93aae3359043c436183 (diff) | |
| download | mullvadvpn-b5b89ac31ee89f5675a20633a5edcafb97c77448.tar.xz mullvadvpn-b5b89ac31ee89f5675a20633a5edcafb97c77448.zip | |
Migrate in app notifications to use 'navigate-external' action type
| -rw-r--r-- | desktop/packages/mullvad-vpn/src/shared/notifications/close-to-account-expiry.ts | 8 | ||||
| -rw-r--r-- | desktop/packages/mullvad-vpn/src/shared/notifications/unsupported-version.ts | 6 |
2 files changed, 11 insertions, 3 deletions
diff --git a/desktop/packages/mullvad-vpn/src/shared/notifications/close-to-account-expiry.ts b/desktop/packages/mullvad-vpn/src/shared/notifications/close-to-account-expiry.ts index 2e72938fae..45bc786d90 100644 --- a/desktop/packages/mullvad-vpn/src/shared/notifications/close-to-account-expiry.ts +++ b/desktop/packages/mullvad-vpn/src/shared/notifications/close-to-account-expiry.ts @@ -66,7 +66,13 @@ export class CloseToAccountExpiryNotificationProvider indicator: 'warning', title: messages.pgettext('in-app-notifications', 'ACCOUNT CREDIT EXPIRES SOON'), subtitle, - action: { type: 'open-url', url: urls.purchase, withAuth: true }, + action: { + type: 'navigate-external', + link: { + to: urls.purchase, + withAuth: true, + }, + }, }; } } diff --git a/desktop/packages/mullvad-vpn/src/shared/notifications/unsupported-version.ts b/desktop/packages/mullvad-vpn/src/shared/notifications/unsupported-version.ts index 54213d7c4e..14ce2a17ee 100644 --- a/desktop/packages/mullvad-vpn/src/shared/notifications/unsupported-version.ts +++ b/desktop/packages/mullvad-vpn/src/shared/notifications/unsupported-version.ts @@ -45,8 +45,10 @@ export class UnsupportedVersionNotificationProvider title: messages.pgettext('in-app-notifications', 'UNSUPPORTED VERSION'), subtitle: this.getMessage(), action: { - type: 'open-url', - url: getDownloadUrl(this.context.suggestedIsBeta ?? false), + type: 'navigate-external', + link: { + to: getDownloadUrl(this.context.suggestedIsBeta ?? false), + }, }, }; } |
