Skip to content

Commit

Permalink
https://github.com/CrisisCleanup/crisiscleanup-3-api/issues/724
Browse files Browse the repository at this point in the history
  • Loading branch information
tabiodun committed Sep 23, 2022
1 parent f020db5 commit f845485
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/components/IncidentApprovalTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
v-if="slotProps.item.organization_profile_completed"
/>
<badge
v-if="slotProps.item.org_verified"
v-if="slotProps.item.is_verified"
width="18px"
height="18px"
class="text-white bg-green-500 mx-1"
Expand Down Expand Up @@ -52,7 +52,7 @@
<base-button
:text="$t('actions.approve')"
:alt="$t('actions.approve')"
v-if="slotProps.item.org_verified"
v-if="slotProps.item.is_verified"
variant="solid"
size="small"
class="mx-2"
Expand All @@ -68,7 +68,7 @@
variant="outline"
size="small"
class="mx-2"
v-if="slotProps.item.org_verified"
v-if="slotProps.item.is_verified"
:action="
() => {
rejectRequest(slotProps.item.id);
Expand Down
9 changes: 8 additions & 1 deletion src/components/LocationViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ export default {
return {};
},
},
useGoogleMaps: {
type: Boolean,
},
},
methods: {
createTileLayer() {
Expand Down Expand Up @@ -58,7 +61,11 @@ export default {
this.map = L.map('map', {
zoomControl: false,
}).setView([35.7465122599185, -96.41150963125656], 3);
this.createTileLayer().addTo(this.map);
if (this.useGoogleMaps) {
L.gridLayer.googleMutant({ type: 'roadmap' }).addTo(this.map);
} else {
this.createTileLayer().addTo(this.map);
}
this.markerLayer.addTo(this.map);
this.addMarkerToMap();
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/OrganizationApprovalTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
v-if="slotProps.item.profile_completed"
/>
<badge
v-if="slotProps.item.org_verified"
v-if="slotProps.item.is_verified"
width="18px"
height="18px"
class="text-white bg-green-500 mx-1"
Expand Down
2 changes: 1 addition & 1 deletion src/components/admin/OrganizationsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
v-if="slotProps.item.profile_completed"
/>
<badge
v-if="slotProps.item.org_verified"
v-if="slotProps.item.is_verified"
:title="$t('adminOrganization.org_verified')"
width="18px"
height="18px"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/admin/AdminDashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ export default {
if (this.$can('move_orgs')) {
try {
const response = await this.$http.get(
`${process.env.VUE_APP_API_BASE_URL}/admins/incident_requests?organization__org_verified=true`,
`${process.env.VUE_APP_API_BASE_URL}/admins/incident_requests?organization__is_verified=true`,
);
if (response.data) {
this.incident_requests = [...response.data.results];
Expand Down
6 changes: 3 additions & 3 deletions src/pages/admin/AdminOrganization.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
</base-checkbox>
<base-checkbox
class="mb-4 sm:mb-0"
v-model="organization.org_verified"
v-model="organization.is_verified"
>
Org Verified
</base-checkbox>
Expand Down Expand Up @@ -529,7 +529,7 @@
</div>
<div class="flex" :key="`${request.id}`">
<base-button
v-if="request.org_verified"
v-if="request.is_verified"
:text="$t('actions.approve')"
variant="solid"
size="small"
Expand All @@ -545,7 +545,7 @@
variant="outline"
size="small"
class="mx-2 w-24"
v-if="request.org_verified"
v-if="request.is_verified"
:action="
() => {
rejectIncidentRequest(request.id);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/admin/sds.vue
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ export default {
if (this.$can('move_orgs')) {
try {
const response = await this.$http.get(
`${process.env.VUE_APP_API_BASE_URL}/admins/incident_requests?organization__org_verified=true`,
`${process.env.VUE_APP_API_BASE_URL}/admins/incident_requests?organization__is_verified=true`,
);
if (response.data) {
this.incident_requests = [...response.data.results];
Expand Down
1 change: 1 addition & 0 deletions src/pages/unauthenticated/Survivors.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@
:key="JSON.stringify(survivorToken.worksite.location)"
class="h-84 mt-4 w-full"
@updatedLocation="(latLng) => geocodeWorksite(latLng.lat, latLng.lng)"
use-google-maps
/>
</div>

Expand Down

0 comments on commit f845485

Please sign in to comment.