adds key id to the tooltip, which is shown for unknown keys

This commit is contained in:
Sebastian Sdorra
2020-07-30 13:35:34 +02:00
parent 4112a0b70a
commit f4ab367220
2 changed files with 12 additions and 12 deletions

View File

@@ -98,7 +98,16 @@ storiesOf("Changesets", module)
five
);
})
.add("With Valid Signature", () => {
.add("With unknown signature", () => {
const changeset = copy(three);
changeset.signatures = [{
keyId: "0x247E908C6FD35473",
type: "gpg",
status: "NOT_FOUND"
}];
return <ChangesetRow repository={repository} changeset={changeset} />;
})
.add("With valid signature", () => {
const changeset = copy(three);
changeset.signatures = [{
keyId: "0x247E908C6FD35473",
@@ -109,16 +118,7 @@ storiesOf("Changesets", module)
}];
return <ChangesetRow repository={repository} changeset={changeset} />;
})
.add("With Unkown Signature", () => {
const changeset = copy(three);
changeset.signatures = [{
keyId: "0x247E908C6FD35473",
type: "gpg",
status: "NOT_FOUND"
}];
return <ChangesetRow repository={repository} changeset={changeset} />;
})
.add("With Invalid Signature", () => {
.add("With invalid signature", () => {
const changeset = copy(three);
changeset.signatures = [{
keyId: "0x247E908C6FD35473",

View File

@@ -62,7 +62,7 @@ const SignatureIcon: FC<Props> = ({ signatures, className }) => {
}
if (signature.status === "NOT_FOUND") {
return `${t("changeset.signatureStatus")}: ${status}`;
return `${t("changeset.signatureStatus")}: ${status}\n${t("changeset.keyId")}: ${signature.keyId}`;
}
let message = `${t("changeset.keyOwner")}: ${signature.owner ? signature.owner : t("changeset.noOwner")}\n${t("changeset.keyId")}: ${signature.keyId}\n${t(