summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-05-20 11:35:47 +0200
committerSebastian Holmin <sebastian.holmin@mullvad.net>2025-05-28 13:25:41 +0200
commite0984d3fce8edd4dfac0ff59264f6e0c6d54a484 (patch)
treef450caae19b7e67e458646e2a2933df76a2277d3
parente797c298439ba8ef1ba907fc81ae06a4790b4a44 (diff)
downloadmullvadvpn-e0984d3fce8edd4dfac0ff59264f6e0c6d54a484.tar.xz
mullvadvpn-e0984d3fce8edd4dfac0ff59264f6e0c6d54a484.zip
Update system notifications to use 'navigate-external' type
-rw-r--r--desktop/packages/mullvad-vpn/src/shared/notifications/account-expired.ts10
-rw-r--r--desktop/packages/mullvad-vpn/src/shared/notifications/close-to-account-expiry.ts10
-rw-r--r--desktop/packages/mullvad-vpn/src/shared/notifications/unsupported-version.ts8
-rw-r--r--desktop/packages/mullvad-vpn/src/shared/notifications/update-available.ts8
4 files changed, 22 insertions, 14 deletions
diff --git a/desktop/packages/mullvad-vpn/src/shared/notifications/account-expired.ts b/desktop/packages/mullvad-vpn/src/shared/notifications/account-expired.ts
index 8eff5379db..48c8edc1f3 100644
--- a/desktop/packages/mullvad-vpn/src/shared/notifications/account-expired.ts
+++ b/desktop/packages/mullvad-vpn/src/shared/notifications/account-expired.ts
@@ -32,10 +32,12 @@ export class AccountExpiredNotificationProvider implements SystemNotificationPro
severity: SystemNotificationSeverityType.high,
presentOnce: { value: true, name: this.constructor.name },
action: {
- type: 'open-url',
- url: urls.purchase,
- withAuth: true,
- text: messages.pgettext('notifications', 'Buy more'),
+ type: 'navigate-external',
+ link: {
+ text: messages.pgettext('notifications', 'Buy more'),
+ to: urls.purchase,
+ withAuth: true,
+ },
},
};
}
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 45bc786d90..9300e414d6 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
@@ -43,10 +43,12 @@ export class CloseToAccountExpiryNotificationProvider
category: SystemNotificationCategory.expiry,
severity: SystemNotificationSeverityType.medium,
action: {
- type: 'open-url',
- url: urls.purchase,
- withAuth: true,
- text: messages.pgettext('notifications', 'Buy more'),
+ type: 'navigate-external',
+ link: {
+ text: messages.pgettext('notifications', 'Buy more'),
+ 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 14ce2a17ee..760b0e8f73 100644
--- a/desktop/packages/mullvad-vpn/src/shared/notifications/unsupported-version.ts
+++ b/desktop/packages/mullvad-vpn/src/shared/notifications/unsupported-version.ts
@@ -30,9 +30,11 @@ export class UnsupportedVersionNotificationProvider
category: SystemNotificationCategory.newVersion,
severity: SystemNotificationSeverityType.high,
action: {
- type: 'open-url',
- url: getDownloadUrl(this.context.suggestedIsBeta ?? false),
- text: messages.pgettext('notifications', 'Upgrade'),
+ type: 'navigate-external',
+ link: {
+ text: messages.pgettext('notifications', 'Upgrade'),
+ to: getDownloadUrl(this.context.suggestedIsBeta ?? false),
+ },
},
presentOnce: { value: true, name: this.constructor.name },
suppressInDevelopment: true,
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 70452289c6..60fdb9cff8 100644
--- a/desktop/packages/mullvad-vpn/src/shared/notifications/update-available.ts
+++ b/desktop/packages/mullvad-vpn/src/shared/notifications/update-available.ts
@@ -28,9 +28,11 @@ export class UpdateAvailableNotificationProvider implements SystemNotificationPr
category: SystemNotificationCategory.newVersion,
severity: SystemNotificationSeverityType.medium,
action: {
- type: 'open-url',
- url: getDownloadUrl(this.context.suggestedIsBeta ?? false),
- text: messages.pgettext('notifications', 'Upgrade'),
+ type: 'navigate-external',
+ link: {
+ text: messages.pgettext('notifications', 'Upgrade'),
+ to: getDownloadUrl(this.context.suggestedIsBeta ?? false),
+ },
},
presentOnce: { value: true, name: this.constructor.name },
suppressInDevelopment: true,