diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2020-06-17 15:20:56 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2020-06-24 11:23:12 +0200 |
| commit | 2341e2eea669ed29e1146d012fa7a4e5dc9bebf6 (patch) | |
| tree | 47d17244c20745a0b71a6eca5b0947deea088704 /gui/src/shared/notifications/inconsistentVersion.ts | |
| parent | ddf0ace17e8ca6cd27aa13c3db63e0d16ae504ba (diff) | |
| download | mullvadvpn-2341e2eea669ed29e1146d012fa7a4e5dc9bebf6.tar.xz mullvadvpn-2341e2eea669ed29e1146d012fa7a4e5dc9bebf6.zip | |
Rename notification provider files to kebab-case
Diffstat (limited to 'gui/src/shared/notifications/inconsistentVersion.ts')
| -rw-r--r-- | gui/src/shared/notifications/inconsistentVersion.ts | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/gui/src/shared/notifications/inconsistentVersion.ts b/gui/src/shared/notifications/inconsistentVersion.ts deleted file mode 100644 index 94c33bd925..0000000000 --- a/gui/src/shared/notifications/inconsistentVersion.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { messages } from '../../shared/gettext'; -import { - InAppNotification, - InAppNotificationProvider, - SystemNotification, - SystemNotificationProvider, -} from './notification'; - -interface InconsistentVersionNotificationContext { - consistent: boolean; -} - -export class InconsistentVersionNotificationProvider - implements SystemNotificationProvider, InAppNotificationProvider { - public constructor(private context: InconsistentVersionNotificationContext) {} - - public mayDisplay = () => !this.context.consistent; - - public getSystemNotification(): SystemNotification { - return { - message: messages.pgettext( - 'notifications', - 'Inconsistent internal version information, please restart the app', - ), - critical: true, - presentOnce: { value: true, name: this.constructor.name }, - suppressInDevelopment: true, - }; - } - - public getInAppNotification(): InAppNotification { - return { - indicator: 'error', - title: messages.pgettext('in-app-notifications', 'INCONSISTENT VERSION'), - subtitle: messages.pgettext( - 'in-app-notifications', - 'Inconsistent internal version information, please restart the app', - ), - }; - } -} |
