(props)
| 31 | |
| 32 | export default class BackupKey extends React.Component { |
| 33 | constructor(props) { |
| 34 | super(props); |
| 35 | this.state = { |
| 36 | waiting: false, |
| 37 | terminate: false, |
| 38 | action: 'setup', |
| 39 | error: null |
| 40 | }; |
| 41 | this.port = EventHandler.connect(`keyBackupDialog-${this.props.id}`, this); |
| 42 | this.registerEventListeners(); |
| 43 | this.port.emit('keybackup-dialog-init'); |
| 44 | this.handleClick = this.handleClick.bind(this); |
| 45 | } |
| 46 | |
| 47 | registerEventListeners() { |
| 48 | this.port.on('set-init-data', ({data: {initialSetup}}) => this.setState({action: initialSetup ? 'setup' : 'restore'})); |
nothing calls this directly
no test coverage detected