| 139 | } |
| 140 | |
| 141 | async handleSetExDate(newExDateISOString) { |
| 142 | this.setState({processing: true}); |
| 143 | try { |
| 144 | await port.send('set-key-expiry-date', {fingerprint: this.state.keyDetails.fingerprint, keyringId: this.context.keyringId, newExDateISOString}); |
| 145 | this.props.onKeyringChange(); |
| 146 | } catch (e) { |
| 147 | console.log('Setting new expiry date failed.', e); |
| 148 | } finally { |
| 149 | this.setState({processing: false}); |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | async handleChangePwd(currentPassword, password) { |
| 154 | this.setState({processing: true}); |