forked from trent_larson/crowd-funder-for-time-pwa
migrate: PhotoDialog.vue to use () API
- Replace settings.activeDid with () pattern - Maintains backward compatibility with existing functionality - Component now uses active_identity table as single source of truth - Part of ActiveDid migration (2/32 components completed) - Updated migration plan to include lint-fix step
This commit is contained in:
@@ -268,7 +268,11 @@ export default class PhotoDialog extends Vue {
|
||||
// logger.log("PhotoDialog mounted");
|
||||
try {
|
||||
const settings = await this.$accountSettings();
|
||||
this.activeDid = settings.activeDid || "";
|
||||
|
||||
// Get activeDid from active_identity table (single source of truth)
|
||||
const activeIdentity = await this.$getActiveIdentity();
|
||||
this.activeDid = activeIdentity.activeDid || "";
|
||||
|
||||
this.isRegistered = !!settings.isRegistered;
|
||||
logger.log("isRegistered:", this.isRegistered);
|
||||
} catch (error: unknown) {
|
||||
|
||||
Reference in New Issue
Block a user