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:
@@ -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" });
|
||||
|
||||
Reference in New Issue
Block a user