Skip to content

Commit 0dd28ed

Browse files
authored
Added Reunification support (#109)
* Added Distant property. * Added support for out of area contacts. * Added support for out of area contacts. * Added support for out of area contacts. * Added support for out of area contacts. * Added support for out of area contacts. * Added support for out of area contacts. * Added support for out of area contacts. * Added Reunification support * Updated title to Out of Area Contact * Added Reunification support * Added Reunification support
1 parent 53d4a3e commit 0dd28ed

4 files changed

Lines changed: 16 additions & 8 deletions

File tree

2wr-app/src/components/prepare/family-plans/editors/route-location-editor.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<v-text-field
55
v-model="theRoute.name"
66
:rules="rules.name"
7-
label="Route Name"
7+
label="Reunification Plan Name"
8+
disabled=true
89
outlined
910
/>
1011
<photos-editor title="Photos" :route="theRoute" />

2wr-app/src/components/prepare/family-plans/family-plan-contacts-view.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<v-icon>mdi-plus</v-icon>
1616
</v-btn>
1717
</v-fab-transition>
18-
<InfoBar v-if="distant" :title="`${plan.title} - Distant Contact`"></InfoBar>
18+
<InfoBar v-if="distant" :title="`${plan.title} - Out of Area Contact`"></InfoBar>
1919
<InfoBar v-if="!distant" :title="`${plan.title} - Emergency Contacts`"></InfoBar>
2020
<v-card class="pa-2" v-if="contacts.length == 0"><em>Press <strong>'+'</strong> to add a new contact.</em></v-card>
2121
<v-card v-for="contact in contacts" :key="contact.fullName">

2wr-app/src/components/prepare/family-plans/family-plans-view.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
@click="ensureNamed('Out of Area Contact', 'distantcontacts')"
8080
>
8181
<v-flex class="d-flex justify-space-between px-2 py-2">
82-
<div>Out of Area Contacts</div>
82+
<div>Out of Area Contact</div>
8383
<div>
8484
<v-icon class="mr-2">mdi-chevron-right</v-icon>
8585
</div>
@@ -92,7 +92,7 @@
9292
@click="ensureNamed('Routes and Locations', 'routes')"
9393
>
9494
<v-flex class="d-flex justify-space-between px-2 py-2">
95-
<div>Routes and Locations</div>
95+
<div>Reunification</div>
9696
<div>
9797
<v-icon class="mr-2">mdi-chevron-right</v-icon>
9898
</div>

2wr-app/src/components/prepare/family-plans/route-location-list.vue

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<v-container class="py-0" v-if="plan">
33
<v-fab-transition>
44
<v-btn
5+
v-if="routes.length < 2"
56
color="green"
67
dark
78
absolute
@@ -14,13 +15,17 @@
1415
<v-icon>mdi-plus</v-icon>
1516
</v-btn>
1617
</v-fab-transition>
17-
<InfoBar :title="`${ plan.title } - Routes and Locations`"></InfoBar>
18+
<InfoBar :title="`${ plan.title } - Reunification`"></InfoBar>
1819
<v-app-bar app flat dense fixed color="background">
1920
<v-icon class="mr-2" v-on:click="goBack()">mdi-arrow-left</v-icon>
20-
<v-toolbar-title>{{ plan.title }} - Routes and Locations</v-toolbar-title>
21+
<v-toolbar-title>{{ plan.title }} - Reunification</v-toolbar-title>
2122
</v-app-bar>
23+
<v-card class="pa-2">
24+
An emergency has happened at your home. Where do you plan to meet others and how will you get there?
25+
Add up to two reunification plans containing important information, including addresses and photos as needed.
26+
</v-card>
2227
<v-card class="pa-2" v-if="routes.length == 0">
23-
<em>Press <strong>'+'</strong> to add a new route.</em>
28+
<em>Press <strong>'+'</strong> to add a new reunification plan.</em>
2429
</v-card>
2530
<v-card class="pa-2" v-for="route in routes" :key="route.id">
2631
<IconTextBlock icon="mdi-pencil" :allowSelected="true" @selected="launchEditor(route)">
@@ -86,7 +91,9 @@ export default defineComponent({
8691
}
8792
8893
function addNew() {
89-
launchEditor(new RouteLocation());
94+
let routeLocation = new RouteLocation();
95+
routeLocation.name = "Reunification Plan " + String.fromCharCode("A".charCodeAt(0) + routes.value.length);
96+
launchEditor(routeLocation);
9097
}
9198
9299
return {

0 commit comments

Comments
 (0)