mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-16 18:26:16 +01:00
adds key id to the tooltip, which is shown for unknown keys
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user