refactor: convert AmountInput to function props

- Convert AmountInput from @Emit("update:value") to onUpdateValue function prop
- Update GiftDetailsStep to use new function prop interface for amount handling

AmountInput now provides better parent control over validation and updates
This commit is contained in:
Matthew Raymer
2025-07-18 07:10:41 +00:00
parent 0bcf34c703
commit c6b27d55ff
4 changed files with 21 additions and 23 deletions

View File

@@ -36,8 +36,8 @@
:on-navigate-onboard-meeting="
() => $router.push({ name: 'onboard-meeting-list' })
"
@qr-scan="handleQRCodeClick"
:on-update-model-value="(value: string) => (contactInput = value)"
@qr-scan="handleQRCodeClick"
/>
<ContactListHeader
@@ -1242,12 +1242,14 @@ export default class ContactsView extends Vue {
* Handle QR code button click - route to appropriate scanner
* Uses native scanner on mobile platforms, web scanner otherwise
*/
public handleQRCodeClick() {
console.log("[ContactsView] handleQRCodeClick method called");
this.$logAndConsole("[ContactsView] handleQRCodeClick method called", false);
this.$logAndConsole(
"[ContactsView] handleQRCodeClick method called",
false,
);
if (Capacitor.isNativePlatform()) {
console.log("[ContactsView] Navigating to contact-qr-scan-full");
this.$router.push({ name: "contact-qr-scan-full" });