diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2022-12-01 15:53:52 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2023-02-09 10:39:26 +0100 |
| commit | ed97852d98976ced51bcd46650e7a465d6b3101f (patch) | |
| tree | e86212b533121a2f291f3dffc1162a6e4e115f18 /gui/src/shared | |
| parent | 98b6bd1d3c879fd3be6e84ded04888758299dca5 (diff) | |
| download | mullvadvpn-ed97852d98976ced51bcd46650e7a465d6b3101f.tar.xz mullvadvpn-ed97852d98976ced51bcd46650e7a465d6b3101f.zip | |
Close notifications when they are no longer relevant
Diffstat (limited to 'gui/src/shared')
4 files changed, 5 insertions, 4 deletions
diff --git a/gui/src/shared/notifications/inconsistent-version.ts b/gui/src/shared/notifications/inconsistent-version.ts index f6f3cf4166..f4a5616c43 100644 --- a/gui/src/shared/notifications/inconsistent-version.ts +++ b/gui/src/shared/notifications/inconsistent-version.ts @@ -21,7 +21,7 @@ export class InconsistentVersionNotificationProvider public getSystemNotification(): SystemNotification { return { message: messages.pgettext('notifications', 'App is out of sync. Please quit and restart.'), - category: SystemNotificationCategory.version, + category: SystemNotificationCategory.inconsistentVersion, severity: SystemNotificationSeverityType.high, presentOnce: { value: true, name: this.constructor.name }, suppressInDevelopment: true, diff --git a/gui/src/shared/notifications/notification.ts b/gui/src/shared/notifications/notification.ts index 2fd0a47a37..10b5b21fc8 100644 --- a/gui/src/shared/notifications/notification.ts +++ b/gui/src/shared/notifications/notification.ts @@ -17,7 +17,8 @@ export enum SystemNotificationSeverityType { export enum SystemNotificationCategory { tunnelState, expiry, - version, + newVersion, + inconsistentVersion, } interface NotificationProvider { diff --git a/gui/src/shared/notifications/unsupported-version.ts b/gui/src/shared/notifications/unsupported-version.ts index 6c9c380595..8c2f87460b 100644 --- a/gui/src/shared/notifications/unsupported-version.ts +++ b/gui/src/shared/notifications/unsupported-version.ts @@ -27,7 +27,7 @@ export class UnsupportedVersionNotificationProvider public getSystemNotification(): SystemNotification { return { message: this.getMessage(), - category: SystemNotificationCategory.version, + category: SystemNotificationCategory.newVersion, severity: SystemNotificationSeverityType.high, action: { type: 'open-url', diff --git a/gui/src/shared/notifications/update-available.ts b/gui/src/shared/notifications/update-available.ts index 8e6bd7e76e..0394ef15a5 100644 --- a/gui/src/shared/notifications/update-available.ts +++ b/gui/src/shared/notifications/update-available.ts @@ -41,7 +41,7 @@ export class UpdateAvailableNotificationProvider public getSystemNotification(): SystemNotification { return { message: this.systemMessage(), - category: SystemNotificationCategory.version, + category: SystemNotificationCategory.newVersion, severity: SystemNotificationSeverityType.medium, action: { type: 'open-url', |
