MCPcopy Create free account
hub / github.com/mailvelope/mailvelope / onImportOk

Method onImportOk

src/controller/import.controller.js:49–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 3

closePopupMethod · 0.95
importKeysMethod · 0.45
emitMethod · 0.45

Tested by

no test coverage detected