MCPcopy Create free account
hub / github.com/mailvelope/mailvelope / handleSetExDate

Method handleSetExDate

src/app/keyring/Key.js:141–151  ·  view source on GitHub ↗
(newExDateISOString)

Source from the content-addressed store, hash-verified

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});

Callers

nothing calls this directly

Calls 2

setStateMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected