Skip to content

Commit

Permalink
Merge pull request #122 from wadeking98/fix-verify-in-new-tab
Browse files Browse the repository at this point in the history
fixed the cred verify page when opening in new tab
  • Loading branch information
WadeBarnes authored Jan 12, 2022
2 parents 02f981f + e16c00b commit 5d74eb2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/components/entity/credentialDetail/CredentialDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ interface Data {
"setLoading",
"fetchPresId",
"fetchPresEx",
"fetchFormattedIdentifiedTopic",
]),
},
})
Expand All @@ -192,6 +193,13 @@ export default class CredentialDetail extends Vue {
fetchSelectedCredential!: (id: string) => Promise<void>;
fetchPresId!: (id: string) => Promise<void>;
fetchPresEx!: (params: { id: string; presId: string }) => Promise<void>;
fetchFormattedIdentifiedTopic!: ({
sourceId,
type,
}: {
sourceId: string;
type: string;
}) => Promise<void>;
setLoading!: (loading: boolean) => void;
data(): Data {
Expand Down Expand Up @@ -286,6 +294,10 @@ export default class CredentialDetail extends Vue {
await Promise.all([
this.fetchSelectedCredential(credentialId),
this.fetchPresId(credentialId),
this.fetchFormattedIdentifiedTopic({
sourceId,
type: "registration.registries.ca",
})
]);
//need a small timeout because the credential isn't always verified after fetchPresId returns
await new Promise((r) => setTimeout(r, 1000));
Expand Down

0 comments on commit 5d74eb2

Please sign in to comment.