Browse Source

feat: migrate batch 3 components to active identity façade

- Update ProjectViewView, QuickActionBvcBeginView, ContactQRScanFullView
- Update NewActivityView, NewEditProjectView
- Replace settings.activeDid with () façade method
- Add consistent migration comments for future reference

Batch 3 completes migration of 5 medium-priority components
using simple read patterns.
activedid_migration
Matthew Raymer 11 hours ago
parent
commit
0277b65caa
  1. 3
      src/views/ContactQRScanFullView.vue
  2. 3
      src/views/NewActivityView.vue
  3. 3
      src/views/NewEditProjectView.vue
  4. 3
      src/views/ProjectViewView.vue
  5. 3
      src/views/QuickActionBvcBeginView.vue

3
src/views/ContactQRScanFullView.vue

@ -265,7 +265,8 @@ export default class ContactQRScanFull extends Vue {
async created() {
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()) || "";
this.apiServer = settings.apiServer || "";
this.givenName = settings.firstName || "";
this.isRegistered = !!settings.isRegistered;

3
src/views/NewActivityView.vue

@ -202,7 +202,8 @@ export default class NewActivityView 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.lastAckedOfferToUserProjectsJwtId =
settings.lastAckedOfferToUserProjectsJwtId || "";

3
src/views/NewEditProjectView.vue

@ -378,7 +378,8 @@ export default class NewEditProjectView extends Vue {
this.numAccounts = await retrieveAccountCount();
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.showGeneralAdvanced = !!settings.showGeneralAdvanced;

3
src/views/ProjectViewView.vue

@ -762,7 +762,8 @@ export default class ProjectViewView extends Vue {
this.notify = createNotifyHelpers(this.$notify);
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.allContacts = await this.$getAllContacts();
this.isRegistered = !!settings.isRegistered;

3
src/views/QuickActionBvcBeginView.vue

@ -150,7 +150,8 @@ export default class QuickActionBvcBeginView extends Vue {
// Get account settings using PlatformServiceMixin
const settings = await this.$accountSettings();
const activeDid = settings.activeDid || "";
// Use new Active Identity façade instead of settings.activeDid
const activeDid = (await this.$getActiveDid()) || "";
const apiServer = settings.apiServer || "";
if (!activeDid || !apiServer) {

Loading…
Cancel
Save