mirror of https://github.com/keeweb/keeweb.git
icon
This commit is contained in:
parent
76fa1f6c9f
commit
a8590c1b90
|
@ -982,7 +982,11 @@ class OpenView extends View {
|
|||
usbDevicesChanged() {
|
||||
if (this.model.settings.canOpenOtpDevice && this.model.settings.yubiKeyShowIcon) {
|
||||
const hasYubiKeys = !!UsbListener.attachedYubiKeys.length;
|
||||
this.$el.find('.open__icon-yubikey').toggleClass('hide', !hasYubiKeys);
|
||||
const icon = this.$el.find('.open__icon-yubikey');
|
||||
icon.toggleClass('hide', !hasYubiKeys);
|
||||
if (!hasYubiKeys && this.busy && this.otpDevice) {
|
||||
this.otpDevice.cancelOpen();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue