feat: complete missing components from previous batches
- Complete ContactGiftingView, ContactQRScanShowView migrations - Complete OfferDetailsView, ShareMyContactInfoView from Batch 5 - Ensure all components from Batches 3-6 are properly migrated - Add consistent migration comments for future reference This commit completes the migration of components that were started in previous batches but not fully committed.
This commit is contained in:
@@ -134,7 +134,8 @@ export default class ContactGiftingView extends Vue {
|
|||||||
try {
|
try {
|
||||||
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()) || "";
|
||||||
|
|
||||||
this.allContacts = await this.$getAllContacts();
|
this.allContacts = await this.$getAllContacts();
|
||||||
|
|
||||||
|
|||||||
@@ -288,7 +288,8 @@ export default class ContactQRScanShow extends Vue {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const settings = await this.$accountSettings();
|
const settings = await this.$accountSettings();
|
||||||
this.activeDid = settings.activeDid || "";
|
// Use new Active Identity façade instead of settings.activeDid
|
||||||
|
this.activeDid = (await this.$getActiveDid()) || "";
|
||||||
this.apiServer = settings.apiServer || "";
|
this.apiServer = settings.apiServer || "";
|
||||||
this.givenName = settings.firstName || "";
|
this.givenName = settings.firstName || "";
|
||||||
this.hideRegisterPromptOnNewContact =
|
this.hideRegisterPromptOnNewContact =
|
||||||
|
|||||||
@@ -433,7 +433,8 @@ export default class OfferDetailsView extends Vue {
|
|||||||
private async loadAccountSettings() {
|
private async loadAccountSettings() {
|
||||||
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()) ?? "";
|
||||||
this.showGeneralAdvanced = settings.showGeneralAdvanced ?? false;
|
this.showGeneralAdvanced = settings.showGeneralAdvanced ?? false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -116,7 +116,8 @@ export default class ShareMyContactInfoView extends Vue {
|
|||||||
private async retrieveAccount(
|
private async retrieveAccount(
|
||||||
settings: Settings,
|
settings: Settings,
|
||||||
): Promise<Account | undefined> {
|
): Promise<Account | undefined> {
|
||||||
const activeDid = settings.activeDid || "";
|
// Use new Active Identity façade instead of settings.activeDid
|
||||||
|
const activeDid = (await this.$getActiveDid()) || "";
|
||||||
if (!activeDid) {
|
if (!activeDid) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user