From 7d21f286d0895a7f687b1b58884782cc0274e049 Mon Sep 17 00:00:00 2001 From: Tobi Abiodun Date: Tue, 23 Nov 2021 14:00:29 -0500 Subject: [PATCH] Updates to survior tool Fixes for admin search --- src/components/OrganizationSearchInput.vue | 2 +- src/pages/CaseForm.vue | 1 + src/pages/WorksiteNotes.vue | 6 +- src/pages/unauthenticated/Survivors.vue | 169 ++++++++++++++++++--- 4 files changed, 157 insertions(+), 21 deletions(-) diff --git a/src/components/OrganizationSearchInput.vue b/src/components/OrganizationSearchInput.vue index fb5965c5d..c40c8bf79 100644 --- a/src/components/OrganizationSearchInput.vue +++ b/src/components/OrganizationSearchInput.vue @@ -75,7 +75,7 @@ export default { params.is_active = true; } - if (this.allowedOrganizationIds.length > 0) { + if (this.allowedOrganizationIds.length > 0 && !this.isAdmin) { params.id__in = this.allowedOrganizationIds.join(','); } diff --git a/src/pages/CaseForm.vue b/src/pages/CaseForm.vue index d386512fe..66b409687 100644 --- a/src/pages/CaseForm.vue +++ b/src/pages/CaseForm.vue @@ -922,6 +922,7 @@ export default { ...this.worksite, incident: this.incidentId, skip_duplicate_check: true, + send_sms: true, }); const worksiteId = savedWorksite.entities.worksites[0].id; StorageService.removeItem('currentWorksite'); diff --git a/src/pages/WorksiteNotes.vue b/src/pages/WorksiteNotes.vue index 5bf44591b..3b518abdc 100644 --- a/src/pages/WorksiteNotes.vue +++ b/src/pages/WorksiteNotes.vue @@ -43,7 +43,7 @@ +
+
+
+ {{ $t('~~What do you need help with?') }} +
+ +
+
+ {{ + work_type_help_needed.work_type | getWorkTypeName + }} +
+
+
+

-
+
{{ $t('~~Check your property location') }} @@ -98,6 +134,14 @@
+
+ +
+
+ + {{ $t('~~Address Confirmed') }} +
+
+
@@ -217,8 +287,15 @@ ) }}
+ + +