From 6d6e6b5a4eabfbe6578e1c6fb06ea9d778d53a52 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 31 Oct 2018 20:01:36 +0000 Subject: [PATCH] Remove cryptic abbreviation --- .../views/settings/KeyBackupPanel.js | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/components/views/settings/KeyBackupPanel.js b/src/components/views/settings/KeyBackupPanel.js index 57140456ee..83e78787e5 100644 --- a/src/components/views/settings/KeyBackupPanel.js +++ b/src/components/views/settings/KeyBackupPanel.js @@ -152,7 +152,7 @@ export default class KeyBackupPanel extends React.Component { } let backupSigStatuses = this.state.backupSigStatus.sigs.map((sig, i) => { - const sigStatSub = { + const sigStatusSubstitutions = { validity: sub => {sub} @@ -163,35 +163,35 @@ export default class KeyBackupPanel extends React.Component { , device: sub => {sig.device.getDisplayName()}, }; - let sigStat; + let sigStatus; if (sig.device.getFingerprint() === MatrixClientPeg.get().getDeviceEd25519Key()) { - sigStat = _t( + sigStatus = _t( "Backup has a valid signature from this device", - {}, sigStatSub, + {}, sigStatusSubstitutions, ); } else if (sig.valid && sig.device.isVerified()) { - sigStat = _t( + sigStatus = _t( "Backup has a valid signature from " + "verified device x", - {}, sigStatSub, + {}, sigStatusSubstitutions, ); } else if (sig.valid && !sig.device.isVerified()) { - sigStat = _t( + sigStatus = _t( "Backup has a valid signature from " + "unverified device ", - {}, sigStatSub, + {}, sigStatusSubstitutions, ); } else if (!sig.valid && sig.device.isVerified()) { - sigStat = _t( + sigStatus = _t( "Backup has an invalid signature from " + "verified device ", - {}, sigStatSub, + {}, sigStatusSubstitutions, ); } else if (!sig.valid && !sig.device.isVerified()) { - sigStat = _t( + sigStatus = _t( "Backup has an invalid signature from " + "unverified device ", - {}, sigStatSub, + {}, sigStatusSubstitutions, ); } @@ -204,7 +204,7 @@ export default class KeyBackupPanel extends React.Component { } return
- {sigStat} + {sigStatus} {verifyButton}
; });