()
| 47 | } |
| 48 | |
| 49 | async onImportOk() { |
| 50 | const [importResult] = await this.keyring.importKeys([{type: 'public', armored: this.armored}]); |
| 51 | if (importResult.type === 'error') { |
| 52 | this.emit('import-error', {message: importResult.message}); |
| 53 | this.importError = true; |
| 54 | } else { |
| 55 | this.closePopup(); |
| 56 | this.popupPromise.resolve('IMPORTED'); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | handleCancel() { |
| 61 | this.closePopup(); |
nothing calls this directly
no test coverage detected