mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +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 = () => {
|
onStatusChanged = () => {
|
||||||
this._getUpdatedStatus();
|
this._getUpdatedStatus();
|
||||||
};
|
};
|
||||||
@ -175,7 +179,7 @@ export default class CrossSigningPanel extends React.PureComponent {
|
|||||||
) {
|
) {
|
||||||
bootstrapButton = (
|
bootstrapButton = (
|
||||||
<div className="mx_CrossSigningPanel_buttonRow">
|
<div className="mx_CrossSigningPanel_buttonRow">
|
||||||
<AccessibleButton kind="primary" onClick={this._bootstrapSecureSecretStorage}>
|
<AccessibleButton kind="primary" onClick={this._onBootstrapClick}>
|
||||||
{_t("Bootstrap cross-signing and secret storage")}
|
{_t("Bootstrap cross-signing and secret storage")}
|
||||||
</AccessibleButton>
|
</AccessibleButton>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user