feat(migration): extend Phase 1 with invite and certificate components
Complete Phase 1 migration by adding three critical identity components to use the Active Identity façade instead of direct database access. Components migrated: - ClaimCertificateView: certificate generation and display - InviteOneView: invitation management and tracking - InviteOneAcceptView: invitation acceptance flow All components now use $getActiveDid() for active identity retrieval instead of settings.activeDid. Added missing logger import to InviteOneAcceptView for proper error logging. Phase 1 now complete with 12 critical identity components migrated.
This commit is contained in:
@@ -40,7 +40,8 @@ export default class ClaimCertificateView extends Vue {
|
|||||||
async created() {
|
async created() {
|
||||||
this.notify = createNotifyHelpers(this.$notify);
|
this.notify = createNotifyHelpers(this.$notify);
|
||||||
const settings = await this.$accountSettings();
|
const settings = await this.$accountSettings();
|
||||||
this.activeDid = settings.activeDid || "";
|
// Use new Active Identity façade instead of settings.activeDid
|
||||||
|
this.activeDid = (await this.$getActiveDid()) || "";
|
||||||
this.apiServer = settings.apiServer || "";
|
this.apiServer = settings.apiServer || "";
|
||||||
const pathParams = window.location.pathname.substring(
|
const pathParams = window.location.pathname.substring(
|
||||||
"/claim-cert/".length,
|
"/claim-cert/".length,
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ import { APP_SERVER } from "../constants/app";
|
|||||||
import { decodeEndorserJwt } from "../libs/crypto/vc";
|
import { decodeEndorserJwt } from "../libs/crypto/vc";
|
||||||
import { errorStringForLog } from "../libs/endorserServer";
|
import { errorStringForLog } from "../libs/endorserServer";
|
||||||
import { generateSaveAndActivateIdentity } from "../libs/util";
|
import { generateSaveAndActivateIdentity } from "../libs/util";
|
||||||
|
import { logger } from "../utils/logger";
|
||||||
import { PlatformServiceMixin } from "@/utils/PlatformServiceMixin";
|
import { PlatformServiceMixin } from "@/utils/PlatformServiceMixin";
|
||||||
import { createNotifyHelpers } from "@/utils/notify";
|
import { createNotifyHelpers } from "@/utils/notify";
|
||||||
import {
|
import {
|
||||||
@@ -120,7 +121,8 @@ export default class InviteOneAcceptView extends Vue {
|
|||||||
|
|
||||||
// Load or generate identity
|
// Load or generate identity
|
||||||
const settings = await this.$accountSettings();
|
const settings = await this.$accountSettings();
|
||||||
this.activeDid = settings.activeDid || "";
|
// Use new Active Identity façade instead of settings.activeDid
|
||||||
|
this.activeDid = (await this.$getActiveDid()) || "";
|
||||||
this.apiServer = settings.apiServer || "";
|
this.apiServer = settings.apiServer || "";
|
||||||
|
|
||||||
// Identity creation should be handled by router guard, but keep as fallback for deep links
|
// Identity creation should be handled by router guard, but keep as fallback for deep links
|
||||||
|
|||||||
@@ -283,7 +283,8 @@ export default class InviteOneView extends Vue {
|
|||||||
try {
|
try {
|
||||||
// Use PlatformServiceMixin for account settings
|
// Use PlatformServiceMixin for account settings
|
||||||
const settings = await this.$accountSettings();
|
const settings = await this.$accountSettings();
|
||||||
this.activeDid = settings.activeDid || "";
|
// Use new Active Identity façade instead of settings.activeDid
|
||||||
|
this.activeDid = (await this.$getActiveDid()) || "";
|
||||||
this.apiServer = settings.apiServer || "";
|
this.apiServer = settings.apiServer || "";
|
||||||
this.isRegistered = !!settings.isRegistered;
|
this.isRegistered = !!settings.isRegistered;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user