mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
Fix bug where cross-signing keys would be unintentionally reset
Don't pass the boostrap function directly as a an event handler as that gets used as the force argument.
This commit is contained in:
parent
32f70dfec1
commit
9bfc19f367
@ -60,6 +60,10 @@ export default class CrossSigningPanel extends React.PureComponent {
|
||||
}
|
||||
};
|
||||
|
||||
_onBootstrapClick = () => {
|
||||
this._bootstrapSecureSecretStorage(false);
|
||||
};
|
||||
|
||||
onStatusChanged = () => {
|
||||
this._getUpdatedStatus();
|
||||
};
|
||||
@ -175,7 +179,7 @@ export default class CrossSigningPanel extends React.PureComponent {
|
||||
) {
|
||||
bootstrapButton = (
|
||||
<div className="mx_CrossSigningPanel_buttonRow">
|
||||
<AccessibleButton kind="primary" onClick={this._bootstrapSecureSecretStorage}>
|
||||
<AccessibleButton kind="primary" onClick={this._onBootstrapClick}>
|
||||
{_t("Bootstrap cross-signing and secret storage")}
|
||||
</AccessibleButton>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user