feat: migrate batch 7 missing components from previous batches
- Complete SeedBackupView, SharedPhotoView, UserProfileView migrations - Complete RecentOffersToUserView, RecentOffersToUserProjectsView migrations - Complete ContactImportView migration - Replace all remaining settings.activeDid with () façade method - Add consistent migration comments for future reference Batch 7 completes migration of 6 components that were identified as missing from previous migration batches.
This commit is contained in:
@@ -340,7 +340,8 @@ export default class ContactImportView extends Vue {
|
|||||||
*/
|
*/
|
||||||
private async initializeSettings() {
|
private async initializeSettings() {
|
||||||
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 || "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -124,7 +124,8 @@ export default class RecentOffersToUserView 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.lastAckedOfferToUserProjectsJwtId =
|
this.lastAckedOfferToUserProjectsJwtId =
|
||||||
settings.lastAckedOfferToUserProjectsJwtId || "";
|
settings.lastAckedOfferToUserProjectsJwtId || "";
|
||||||
|
|
||||||
|
|||||||
@@ -116,7 +116,8 @@ export default class RecentOffersToUserView 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.lastAckedOfferToUserJwtId = settings.lastAckedOfferToUserJwtId || "";
|
this.lastAckedOfferToUserJwtId = settings.lastAckedOfferToUserJwtId || "";
|
||||||
|
|
||||||
this.allContacts = await this.$getAllContacts();
|
this.allContacts = await this.$getAllContacts();
|
||||||
|
|||||||
@@ -207,7 +207,8 @@ export default class SeedBackupView extends Vue {
|
|||||||
try {
|
try {
|
||||||
let activeDid = "";
|
let activeDid = "";
|
||||||
const settings = await this.$accountSettings();
|
const settings = await this.$accountSettings();
|
||||||
activeDid = settings.activeDid || "";
|
// Use new Active Identity façade instead of settings.activeDid
|
||||||
|
activeDid = (await this.$getActiveDid()) || "";
|
||||||
|
|
||||||
this.numAccounts = await retrieveAccountCount();
|
this.numAccounts = await retrieveAccountCount();
|
||||||
this.activeAccount = await retrieveFullyDecryptedAccount(activeDid);
|
this.activeAccount = await retrieveFullyDecryptedAccount(activeDid);
|
||||||
|
|||||||
@@ -176,7 +176,8 @@ export default class SharedPhotoView 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()) || "";
|
||||||
|
|
||||||
const temp = await this.$getTemp(SHARED_PHOTO_BASE64_KEY);
|
const temp = await this.$getTemp(SHARED_PHOTO_BASE64_KEY);
|
||||||
const imageB64 = temp?.blobB64 as string;
|
const imageB64 = temp?.blobB64 as string;
|
||||||
|
|||||||
@@ -183,7 +183,8 @@ export default class UserProfileView extends Vue {
|
|||||||
*/
|
*/
|
||||||
private async initializeSettings() {
|
private async initializeSettings() {
|
||||||
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.partnerApiServer = settings.partnerApiServer || this.partnerApiServer;
|
this.partnerApiServer = settings.partnerApiServer || this.partnerApiServer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user