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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user