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

Function constructor

src/components/encrypted-form/encryptedForm.js:31–51  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

29
30export default class EncryptedForm extends React.Component {
31 constructor(props) {
32 super(props);
33 this.state = {
34 error: null,
35 waiting: true,
36 showWaiting: true,
37 validate: false,
38 validated: false,
39 formAction: null,
40 formDefinition: null,
41 formEncoding: null,
42 formRecipient: null,
43 recipientFpr: null,
44 terminate: false
45 };
46 this.port = EventHandler.connect(`encryptedForm-${this.props.id}`, this);
47 this.registerEventListeners();
48
49 // emit event to backend that form has initialized
50 this.port.emit('encrypted-form-init');
51 }
52
53 componentDidMount() {
54 this.onResize();

Callers

nothing calls this directly

Calls 3

connectMethod · 0.45
emitMethod · 0.45

Tested by

no test coverage detected