summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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,