refactor: update components for ActiveDid migration compatibility

- Update all components to use new active_identity API methods
- Ensure consistent activeDid retrieval across all views
- Add proper error handling for activeDid migration
- Update component interfaces for new API structure
This commit is contained in:
Matthew Raymer
2025-09-02 10:24:02 +00:00
parent 552de23ef2
commit 2db4f8f894
7 changed files with 13 additions and 9 deletions

View File

@@ -222,8 +222,8 @@ export default class IdentitySwitcherView extends Vue {
}
async switchAccount(did?: string) {
// Save the new active DID to master settings
await this.$saveSettings({ activeDid: did });
// Update the active DID in the active_identity table
await this.$updateActiveDid(did);
// Check if we need to load user-specific settings for the new DID
if (did) {