mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
lint
This commit is contained in:
parent
8fdae73e03
commit
b08c5d8410
@ -115,6 +115,7 @@ export const crossSigningCallbacks = {
|
||||
*
|
||||
* @param {Function} [func] An operation to perform once secret storage has been
|
||||
* bootstrapped. Optional.
|
||||
* @param {bool} [force] Reset secret storage even if it's already set up
|
||||
*/
|
||||
export async function accessSecretStorage(func = async () => { }, force = false) {
|
||||
const cli = MatrixClientPeg.get();
|
||||
|
@ -46,7 +46,7 @@ export default class ConfirmDestroyCrossSigningDialog extends React.Component {
|
||||
"Deleting cross-signing keys is permanent. " +
|
||||
"Anyone you have verified with will see security alerts. " +
|
||||
"You almost certainly don't want to do this, unless " +
|
||||
"you've lost every device you can cross-sign from."
|
||||
"you've lost every device you can cross-sign from.",
|
||||
)}
|
||||
</p>
|
||||
</div>
|
||||
|
@ -87,6 +87,7 @@ export default class CrossSigningPanel extends React.PureComponent {
|
||||
* 2. Access existing secret storage by requesting passphrase and accessing
|
||||
* cross-signing keys as needed.
|
||||
* 3. All keys are loaded and there's nothing to do.
|
||||
* @param {bool} [force] Bootstrap again even if keys already present
|
||||
*/
|
||||
_bootstrapSecureSecretStorage = async (force=false) => {
|
||||
this.setState({ error: null });
|
||||
@ -109,7 +110,7 @@ export default class CrossSigningPanel extends React.PureComponent {
|
||||
_destroySecureSecretStorage = () => {
|
||||
const ConfirmDestoryCrossSigningDialog = sdk.getComponent("dialogs.ConfirmDestroyCrossSigningDialog");
|
||||
Modal.createDialog(ConfirmDestoryCrossSigningDialog, {
|
||||
onFinished: this.onDestroyStorage
|
||||
onFinished: this.onDestroyStorage,
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user