MCPcopy
hub / github.com/mailvelope/mailvelope / showErrorMsg

Function showErrorMsg

src/components/encrypted-form/encryptedForm.js:73–82  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

71 }
72
73 showErrorMsg(error) {
74 this.setState({
75 error: {
76 header: l10n.map.alert_header_error,
77 message: error.message,
78 type: 'danger'
79 },
80 showWaiting: false
81 });
82 }
83
84 onClickSubmit() {
85 // Set state to submit

Callers

nothing calls this directly

Calls 1

setStateMethod · 0.45

Tested by

no test coverage detected