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.
This commit is contained in:
@@ -407,7 +407,8 @@ export default class DiscoverView extends Vue {
|
|||||||
const searchPeople = !!this.$route.query["searchPeople"];
|
const searchPeople = !!this.$route.query["searchPeople"];
|
||||||
|
|
||||||
const settings = await this.$accountSettings();
|
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.apiServer = (settings.apiServer as string) || "";
|
||||||
this.partnerApiServer =
|
this.partnerApiServer =
|
||||||
(settings.partnerApiServer as string) || this.partnerApiServer;
|
(settings.partnerApiServer as string) || this.partnerApiServer;
|
||||||
|
|||||||
@@ -441,7 +441,8 @@ export default class GiftedDetails extends Vue {
|
|||||||
|
|
||||||
const settings = await this.$accountSettings();
|
const settings = await this.$accountSettings();
|
||||||
this.apiServer = settings.apiServer || "";
|
this.apiServer = settings.apiServer || "";
|
||||||
this.activeDid = settings.activeDid || "";
|
// Use new Active Identity façade instead of settings.activeDid
|
||||||
|
this.activeDid = (await this.$getActiveDid()) || "";
|
||||||
|
|
||||||
if (
|
if (
|
||||||
(this.giverDid && !this.giverName) ||
|
(this.giverDid && !this.giverName) ||
|
||||||
|
|||||||
@@ -227,7 +227,8 @@ export default class QuickActionBvcEndView extends Vue {
|
|||||||
|
|
||||||
const settings = await this.$settings();
|
const settings = await this.$settings();
|
||||||
this.apiServer = settings.apiServer || "";
|
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();
|
this.allContacts = await this.$contacts();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user