MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / handleCancel

Method handleCancel

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

Source from the content-addressed store, hash-verified

58 }
59
60 handleCancel() {
61 this.closePopup();
62 if (this.invalidated) {
63 this.popupPromise.resolve('INVALIDATED');
64 } else if (this.importError) {
65 this.popupPromise.reject({message: 'An error occured during key import', code: 'IMPORT_ERROR'});
66 } else {
67 this.popupPromise.resolve('REJECTED');
68 }
69 }
70
71 closePopup() {
72 if (this.importPopup) {

Callers 2

openPopupMethod · 0.95
onKeyUpFunction · 0.45

Calls 2

closePopupMethod · 0.95
rejectMethod · 0.80

Tested by

no test coverage detected