Browse Source

feat: complete batch 5 components migration to active identity façade

- Update GiftedDetailsView, QuickActionBvcEndView, DiscoverView
- Replace settings.activeDid with () façade method
- Add consistent migration comments for future reference
- Complete Batch 5 with 5 total components migrated

Batch 5 completes migration of 5 additional components
with various usage patterns and complexity levels.
activedid_migration
Matthew Raymer 13 hours ago
parent
commit
80a76dadb7
  1. 3
      src/views/DiscoverView.vue
  2. 3
      src/views/GiftedDetailsView.vue
  3. 3
      src/views/QuickActionBvcEndView.vue

3
src/views/DiscoverView.vue

@ -407,7 +407,8 @@ export default class DiscoverView extends Vue {
const searchPeople = !!this.$route.query["searchPeople"];
const settings = await this.$accountSettings();
this.activeDid = (settings.activeDid as string) || "";
// Use new Active Identity façade instead of settings.activeDid
this.activeDid = (await this.$getActiveDid()) || "";
this.apiServer = (settings.apiServer as string) || "";
this.partnerApiServer =
(settings.partnerApiServer as string) || this.partnerApiServer;

3
src/views/GiftedDetailsView.vue

@ -441,7 +441,8 @@ export default class GiftedDetails extends Vue {
const settings = await this.$accountSettings();
this.apiServer = settings.apiServer || "";
this.activeDid = settings.activeDid || "";
// Use new Active Identity façade instead of settings.activeDid
this.activeDid = (await this.$getActiveDid()) || "";
if (
(this.giverDid && !this.giverName) ||

3
src/views/QuickActionBvcEndView.vue

@ -227,7 +227,8 @@ export default class QuickActionBvcEndView extends Vue {
const settings = await this.$settings();
this.apiServer = settings.apiServer || "";
this.activeDid = settings.activeDid || "";
// Use new Active Identity façade instead of settings.activeDid
this.activeDid = (await this.$getActiveDid()) || "";
this.allContacts = await this.$contacts();

Loading…
Cancel
Save