From e0b97261a893288c97dac9b64fc106baab45c7cf Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Sat, 5 Jul 2025 13:03:48 +0000 Subject: [PATCH] Extract RegistrationNotice as vue-facing-decorator component and integrate into AccountViewView - Created RegistrationNotice.vue using vue-facing-decorator (class-based, TypeScript, @Component, @Prop, @Emit). - Moved registration prompt (yellow box) and "Share Your Info" button into the new component. - Replaced original registration notice markup in AccountViewView.vue with . - Passed isRegistered and show props, and wired up @share-info event to a new placeholder openShareDialog() method. - Added placeholder openShareDialog() with a TODO for future implementation. - Ensured all linter errors are resolved and code is consistent with project conventions. --- src/components/RegistrationNotice.vue | 32 +++++++++++++++++++ src/views/AccountViewView.vue | 45 ++++++++++++++------------- 2 files changed, 55 insertions(+), 22 deletions(-) create mode 100644 src/components/RegistrationNotice.vue diff --git a/src/components/RegistrationNotice.vue b/src/components/RegistrationNotice.vue new file mode 100644 index 00000000..fb977f14 --- /dev/null +++ b/src/components/RegistrationNotice.vue @@ -0,0 +1,32 @@ + + + \ No newline at end of file diff --git a/src/views/AccountViewView.vue b/src/views/AccountViewView.vue index 0b44aac5..23d7521b 100644 --- a/src/views/AccountViewView.vue +++ b/src/views/AccountViewView.vue @@ -54,28 +54,11 @@ /> - - +
(); UserNameDialog, DataExportSection, IdentitySection, + RegistrationNotice, }, mixins: [PlatformServiceMixin], }) @@ -1708,5 +1693,21 @@ export default class AccountViewView extends Vue { onCopyDid(did: string) { this.doCopyTwoSecRedo(did, () => (this.showDidCopy = !this.showDidCopy)); } + + get showRegistrationNotice(): boolean { + // Show the notice if not registered and any other conditions you want + return !this.isRegistered; + } + + onShareInfo() { + // Call the existing logic for sharing info, e.g., open the share dialog + this.openShareDialog(); + } + + // Placeholder for share dialog logic + openShareDialog() { + // TODO: Implement share dialog logic + this.notify.info('Share dialog not yet implemented.'); + } }