summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
authorEmīls Piņķis <emils@mullvad.net>2019-07-04 19:17:31 +0100
committerEmīls Piņķis <emils@mullvad.net>2019-07-05 16:49:28 +0100
commit660cfa4ee78602db823c3b3f5753617e797a9f22 (patch)
tree0317fc30a71b32c604726ece6210dfc750c8b96e /gui/src
parent7171248f7751de90b1aa421d6d889f2b2648b6c3 (diff)
downloadmullvadvpn-660cfa4ee78602db823c3b3f5753617e797a9f22.tar.xz
mullvadvpn-660cfa4ee78602db823c3b3f5753617e797a9f22.zip
Add notifications about failed key generation
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/main/notification-controller.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/gui/src/main/notification-controller.ts b/gui/src/main/notification-controller.ts
index 771e788722..4b0f59fbf6 100644
--- a/gui/src/main/notification-controller.ts
+++ b/gui/src/main/notification-controller.ts
@@ -109,6 +109,16 @@ export default class NotificationController {
});
}
+ public notifyKeyGenerationFailed() {
+ const notification = new Notification({
+ title: this.notificationTitle,
+ body: messages.pgettext('notifications', 'Wireguard key generation failed'),
+ silent: true,
+ icon: this.notificationIcon,
+ });
+ this.scheduleNotification(notification);
+ }
+
public cancelPendingNotifications() {
for (const notification of this.pendingNotifications) {
notification.close();