Remove cryptic abbreviation
This commit is contained in:
parent
1a878fc77a
commit
6d6e6b5a4e
1 changed files with 13 additions and 13 deletions
|
@ -152,7 +152,7 @@ export default class KeyBackupPanel extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
let backupSigStatuses = this.state.backupSigStatus.sigs.map((sig, i) => {
|
let backupSigStatuses = this.state.backupSigStatus.sigs.map((sig, i) => {
|
||||||
const sigStatSub = {
|
const sigStatusSubstitutions = {
|
||||||
validity: sub =>
|
validity: sub =>
|
||||||
<span className={sig.valid ? 'mx_KeyBackupPanel_sigValid' : 'mx_KeyBackupPanel_sigInvalid'}>
|
<span className={sig.valid ? 'mx_KeyBackupPanel_sigValid' : 'mx_KeyBackupPanel_sigInvalid'}>
|
||||||
{sub}
|
{sub}
|
||||||
|
@ -163,35 +163,35 @@ export default class KeyBackupPanel extends React.Component {
|
||||||
</span>,
|
</span>,
|
||||||
device: sub => <span className="mx_KeyBackupPanel_deviceName">{sig.device.getDisplayName()}</span>,
|
device: sub => <span className="mx_KeyBackupPanel_deviceName">{sig.device.getDisplayName()}</span>,
|
||||||
};
|
};
|
||||||
let sigStat;
|
let sigStatus;
|
||||||
if (sig.device.getFingerprint() === MatrixClientPeg.get().getDeviceEd25519Key()) {
|
if (sig.device.getFingerprint() === MatrixClientPeg.get().getDeviceEd25519Key()) {
|
||||||
sigStat = _t(
|
sigStatus = _t(
|
||||||
"Backup has a <validity>valid</validity> signature from this device",
|
"Backup has a <validity>valid</validity> signature from this device",
|
||||||
{}, sigStatSub,
|
{}, sigStatusSubstitutions,
|
||||||
);
|
);
|
||||||
} else if (sig.valid && sig.device.isVerified()) {
|
} else if (sig.valid && sig.device.isVerified()) {
|
||||||
sigStat = _t(
|
sigStatus = _t(
|
||||||
"Backup has a <validity>valid</validity> signature from " +
|
"Backup has a <validity>valid</validity> signature from " +
|
||||||
"<verify>verified</verify> device <device>x</device>",
|
"<verify>verified</verify> device <device>x</device>",
|
||||||
{}, sigStatSub,
|
{}, sigStatusSubstitutions,
|
||||||
);
|
);
|
||||||
} else if (sig.valid && !sig.device.isVerified()) {
|
} else if (sig.valid && !sig.device.isVerified()) {
|
||||||
sigStat = _t(
|
sigStatus = _t(
|
||||||
"Backup has a <validity>valid</validity> signature from " +
|
"Backup has a <validity>valid</validity> signature from " +
|
||||||
"<verify>unverified</verify> device <device></device>",
|
"<verify>unverified</verify> device <device></device>",
|
||||||
{}, sigStatSub,
|
{}, sigStatusSubstitutions,
|
||||||
);
|
);
|
||||||
} else if (!sig.valid && sig.device.isVerified()) {
|
} else if (!sig.valid && sig.device.isVerified()) {
|
||||||
sigStat = _t(
|
sigStatus = _t(
|
||||||
"Backup has an <validity>invalid</validity> signature from " +
|
"Backup has an <validity>invalid</validity> signature from " +
|
||||||
"<verify>verified</verify> device <device></device>",
|
"<verify>verified</verify> device <device></device>",
|
||||||
{}, sigStatSub,
|
{}, sigStatusSubstitutions,
|
||||||
);
|
);
|
||||||
} else if (!sig.valid && !sig.device.isVerified()) {
|
} else if (!sig.valid && !sig.device.isVerified()) {
|
||||||
sigStat = _t(
|
sigStatus = _t(
|
||||||
"Backup has an <validity>invalid</validity> signature from " +
|
"Backup has an <validity>invalid</validity> signature from " +
|
||||||
"<verify>unverified</verify> device <device></device>",
|
"<verify>unverified</verify> device <device></device>",
|
||||||
{}, sigStatSub,
|
{}, sigStatusSubstitutions,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -204,7 +204,7 @@ export default class KeyBackupPanel extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
return <div key={i}>
|
return <div key={i}>
|
||||||
{sigStat}
|
{sigStatus}
|
||||||
{verifyButton}
|
{verifyButton}
|
||||||
</div>;
|
</div>;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue