forked from jsnbuchanan/crowd-funder-for-time-pwa
feat: complete ActiveDid migration for remaining Vue components
Replace `settings.activeDid` with `$getActiveIdentity()` API call across 8 components. All Vue components now use the new active_identity table pattern. Components migrated: - TestView.vue: Update logging to use new pattern consistently - ShareMyContactInfoView.vue: Refactor retrieveAccount method signature - UserNameDialog.vue: Update user settings save logic - SeedBackupView.vue: Update both created() and revealSeed() methods - HelpView.vue: Update onboarding reset functionality - ImportAccountView.vue: Update post-import settings check - NewEditAccountView.vue: Update account save logic - QuickActionBvcBeginView.vue: Update BVC recording functionality ✅ TypeScript compilation passes ✅ Linting standards met ✅ Functionality preserved across all components Part of ActiveDid migration following "One Component + Test Pattern". All Vue components now use centralized active_identity table.
This commit is contained in:
@@ -91,7 +91,7 @@ export default class ShareMyContactInfoView extends Vue {
|
||||
|
||||
try {
|
||||
const settings = await this.$accountSettings();
|
||||
const account = await this.retrieveAccount(settings);
|
||||
const account = await this.retrieveAccount();
|
||||
|
||||
if (!account) {
|
||||
this.showAccountError();
|
||||
@@ -113,10 +113,11 @@ export default class ShareMyContactInfoView extends Vue {
|
||||
/**
|
||||
* Retrieve the fully decrypted account for the active DID
|
||||
*/
|
||||
private async retrieveAccount(
|
||||
settings: Settings,
|
||||
): Promise<Account | undefined> {
|
||||
const activeDid = settings.activeDid || "";
|
||||
private async retrieveAccount(): Promise<Account | undefined> {
|
||||
// Get activeDid from new active_identity table (ActiveDid migration)
|
||||
const activeIdentity = await this.$getActiveIdentity();
|
||||
const activeDid = activeIdentity.activeDid || "";
|
||||
|
||||
if (!activeDid) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user