feat(db)!: complete ActiveDid migration to active_identity table
Migrate all 34 Vue components from settings.activeDid to $getActiveIdentity() pattern. This completes the database architecture improvement that separates identity selection from user preferences and prevents data corruption. - Replace this.activeDid = settings.activeDid with $getActiveIdentity() calls - Add ESLint ignore comments for TypeScript type assertions - Update migration plan documentation to reflect completion - All components tested with passing results BREAKING CHANGE: Components now use active_identity table as single source of truth for activeDid values instead of settings table
This commit is contained in:
@@ -378,7 +378,12 @@ export default class NewEditProjectView extends Vue {
|
||||
this.numAccounts = await retrieveAccountCount();
|
||||
|
||||
const settings = await this.$accountSettings();
|
||||
this.activeDid = settings.activeDid || "";
|
||||
|
||||
// Get activeDid from active_identity table (single source of truth)
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const activeIdentity = await (this as any).$getActiveIdentity();
|
||||
this.activeDid = activeIdentity.activeDid || "";
|
||||
|
||||
this.apiServer = settings.apiServer || "";
|
||||
this.showGeneralAdvanced = !!settings.showGeneralAdvanced;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user