Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed the cred verify page when opening in new tab #122

Merged
merged 1 commit into from
Jan 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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