Browse Source

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.
activedid_migration
Matthew Raymer 17 hours ago
parent
commit
63024f6e89
  1. 3
      src/views/ContactImportView.vue
  2. 3
      src/views/RecentOffersToUserProjectsView.vue
  3. 3
      src/views/RecentOffersToUserView.vue
  4. 3
      src/views/SeedBackupView.vue
  5. 3
      src/views/SharedPhotoView.vue
  6. 3
      src/views/UserProfileView.vue

3
src/views/ContactImportView.vue

@ -340,7 +340,8 @@ export default class ContactImportView extends Vue {
*/
private async initializeSettings() {
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 || "";
}

3
src/views/RecentOffersToUserProjectsView.vue

@ -124,7 +124,8 @@ export default class RecentOffersToUserView extends Vue {
try {
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()) || "";
this.lastAckedOfferToUserProjectsJwtId =
settings.lastAckedOfferToUserProjectsJwtId || "";

3
src/views/RecentOffersToUserView.vue

@ -116,7 +116,8 @@ export default class RecentOffersToUserView extends Vue {
try {
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()) || "";
this.lastAckedOfferToUserJwtId = settings.lastAckedOfferToUserJwtId || "";
this.allContacts = await this.$getAllContacts();

3
src/views/SeedBackupView.vue

@ -207,7 +207,8 @@ export default class SeedBackupView extends Vue {
try {
let activeDid = "";
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.activeAccount = await retrieveFullyDecryptedAccount(activeDid);

3
src/views/SharedPhotoView.vue

@ -176,7 +176,8 @@ export default class SharedPhotoView extends Vue {
try {
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 imageB64 = temp?.blobB64 as string;

3
src/views/UserProfileView.vue

@ -183,7 +183,8 @@ export default class UserProfileView extends Vue {
*/
private async initializeSettings() {
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;
}

Loading…
Cancel
Save