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

Method dialogCancel

src/controller/decrypt.controller.js:124–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122 }
123
124 async dialogCancel() {
125 const port = this.getPort('Frame');
126 port?.emit('dialog-cancel');
127 if (await this.getPopup()) {
128 this.popup.close();
129 this.setState({popupId: null, popupOpenerTabId: null});
130 this.popup = null;
131 } else {
132 this.ports.dDialog.emit('lock');
133 }
134 }
135
136 async decrypt(armored, keyringId) {
137 this.ports.dDialog.emit('waiting', {waiting: true});

Callers 4

getPopupMethod · 0.95
onDframeDisplayPopupMethod · 0.95
decryptMethod · 0.95
verifyMethod · 0.80

Calls 5

getPopupMethod · 0.95
getPortMethod · 0.80
closeMethod · 0.80
emitMethod · 0.45
setStateMethod · 0.45

Tested by

no test coverage detected