From 756cc0d26634b992c5e089b0c172f4d141134511 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Mon, 13 Apr 2026 15:15:33 +0000 Subject: [PATCH] Add properties to update compliance permission access --- ts/rmo/content/compliance/Permission.vue | 370 +++++++++++------------ ts/rmo/view/Compliance.vue | 9 +- ts/type/api.ts | 5 + 3 files changed, 197 insertions(+), 187 deletions(-) diff --git a/ts/rmo/content/compliance/Permission.vue b/ts/rmo/content/compliance/Permission.vue index bc1f60fa..97d3dcfc 100644 --- a/ts/rmo/content/compliance/Permission.vue +++ b/ts/rmo/content/compliance/Permission.vue @@ -70,210 +70,208 @@ mosquito sources more quickly, helping protect you and your neighbors.

-
- -
- + +
+ - -
-
- - -
-
- - -
-
- - -
- -
- - -
- -
-
- - + +
+
+ +
+ Fastest resolution + +
+
-
- - - Important: Our staff will only enter if the dog - is secured indoors. Please ensure your pet is safely inside - before a technician arrives. - -
+ +
+
+ +
- -
-
- - -
+
+ +
- -
-
+
+
- -
- -
- - +
- -
-
- - -
-
- - -
-
-

- We understand. Your cooperation is voluntary, - but mosquito breeding sources can affect the health and comfort - of the entire community. -

-

- To help us review this situation and avoid unnecessary - escalation, we strongly encourage you to: -

-
    -
  • Provide detailed photos of the area
  • -
  • Share your contact information
  • -
  • Include any context that may be helpful
  • -
-

- - This allows our team to assess whether the concern has been - addressed or if additional steps may be necessary. - -

-
+
+ + + Important: Our staff will only enter if the dog + is secured indoors. Please ensure your pet is safely inside before + a technician arrives. +
- -
- - Back - - + +
+
+ + +
- + + +
+
+ + +
+ +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+

+ We understand. Your cooperation is voluntary, but + mosquito breeding sources can affect the health and comfort of the + entire community. +

+

+ To help us review this situation and avoid unnecessary escalation, + we strongly encourage you to: +

+
    +
  • Provide detailed photos of the area
  • +
  • Share your contact information
  • +
  • Include any context that may be helpful
  • +
+

+ + This allows our team to assess whether the concern has been + addressed or if additional steps may be necessary. + +

+
+
+
+ + +
+ + Back + + +
diff --git a/ts/rmo/view/Compliance.vue b/ts/rmo/view/Compliance.vue index fbfcebf0..b4d5f6da 100644 --- a/ts/rmo/view/Compliance.vue +++ b/ts/rmo/view/Compliance.vue @@ -134,7 +134,14 @@ function doPermission() { console.log("can't do permission, null report"); return; } - console.log("permission", report.value); + console.log("report.value.has_dog", report.value.has_dog); + updateReport({ + access: report.value.access, + access_instructions: report.value.access_instructions, + gate_code: report.value.gate_code, + has_dog: report.value.has_dog, + wants_scheduled: report.value.wants_scheduled, + }); } async function fetchExistingReport(report_uri: string) { isLoading.value = true; diff --git a/ts/type/api.ts b/ts/type/api.ts index ee887869..be763bf4 100644 --- a/ts/type/api.ts +++ b/ts/type/api.ts @@ -134,14 +134,19 @@ export interface Image { uuid: string; } export interface ComplianceUpdate { + access?: string; + access_instructions?: string; address?: Address; comments?: string; contact?: Contact; + gate_code?: string; + has_dog?: boolean; //id: string; //images?: Image[]; location?: Location; permission?: Permissions; //uri: string; + wants_scheduled?: boolean; } export interface PublicReportDTO { address: Address;