(props)
| 29 | |
| 30 | export 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(); |
nothing calls this directly
no test coverage detected