showing main window for yubikey alerts

This commit is contained in:
antelle 2020-05-30 17:12:48 +02:00
parent e6826b176e
commit 9185ef9a55
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 6 additions and 1 deletions

View File

@ -1,10 +1,11 @@
import { Events } from 'framework/events';
import { Logger } from 'util/logger';
import { YubiKey } from 'comp/app/yubikey';
import { UsbListener } from 'comp/app/usb-listener';
import { Alerts } from 'comp/ui/alerts';
import { Locale } from 'util/locale';
import { Timeouts } from 'const/timeouts';
import { UsbListener } from './usb-listener';
import { Launcher } from 'comp/launcher';
const logger = new Logger('chal-resp');
@ -94,6 +95,8 @@ const ChalRespCalculator = {
},
_showNoKeyAlert(serial, callback) {
Launcher.showMainWindow();
let noKeyAlert = null;
let deviceEnumerationTimer;
@ -142,6 +145,8 @@ const ChalRespCalculator = {
},
_showTouchAlert(serial, callback) {
Launcher.showMainWindow();
return Alerts.alert({
header: Locale.yubiTouchRequestedHeader,
body: Locale.yubiTouchRequestedBody.replace('{}', serial),