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.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 || "";
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user