From 3ad95e1365d10add8dfb9d383c689b72cb7baeb1 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Thu, 9 Apr 2026 22:48:49 +0000 Subject: [PATCH] Bind contact info to compliance model --- ts/rmo/content/compliance/Contact.vue | 170 +++++++++++------------ ts/rmo/content/compliance/Permission.vue | 2 +- 2 files changed, 84 insertions(+), 88 deletions(-) diff --git a/ts/rmo/content/compliance/Contact.vue b/ts/rmo/content/compliance/Contact.vue index 0d910e98..b96bffcd 100644 --- a/ts/rmo/content/compliance/Contact.vue +++ b/ts/rmo/content/compliance/Contact.vue @@ -33,93 +33,91 @@

-
- -
- + +
+ + +
+ + +
+ + +
+ + +
+
-
- - -
-
+ + Text messages allow for faster communication and updates + +
- -
-
- - -
- - Text messages allow for faster communication and updates - + +
+ + +
+ We'll send you a confirmation and any updates about this request
+
- -
- - -
- We'll send you a confirmation and any updates about this request -
-
+ - - - -
- - Back - - -
- + +
+ + Back + + +
@@ -130,6 +128,7 @@ import { router } from "@/rmo/router"; import type { District } from "@/type/api"; import HeaderCompliance from "@/rmo/components/HeaderCompliance.vue"; import ProgressBarCompliance from "@/rmo/components/ProgressBarCompliance.vue"; +import type { Compliance } from "@/rmo/view/Compliance.vue"; export interface Contact { name: string; @@ -138,21 +137,18 @@ export interface Contact { email: string; } interface Emits { - (e: "doContact", contact: Contact): void; + (e: "doContact"): void; + (e: "update:modelValue", value: Compliance): void; } interface Props { district: District; + modelValue: Compliance; } const emit = defineEmits(); const props = defineProps(); -const contact = ref({ - name: "", - phone: "", - can_text: true, - email: "", -}); function doContinue() { - emit("doContact", contact.value); + emit("update:modelValue", props.modelValue); + emit("doContact"); router.push("./process"); } diff --git a/ts/rmo/content/compliance/Permission.vue b/ts/rmo/content/compliance/Permission.vue index d4c1ec55..cd4f40fe 100644 --- a/ts/rmo/content/compliance/Permission.vue +++ b/ts/rmo/content/compliance/Permission.vue @@ -288,8 +288,8 @@ import { type District, PermissionAccess } from "@/type/api"; import type { Compliance } from "@/rmo/view/Compliance.vue"; interface Emits { - (e: "update:modelValue", value: Compliance): void; (e: "doPermission"): void; + (e: "update:modelValue", value: Compliance): void; } export interface Permission { access?: PermissionAccess;