Skip to content

Commit

Permalink
updating function names
Browse files Browse the repository at this point in the history
  • Loading branch information
monicakochofar committed Oct 6, 2023
1 parent c8baccd commit e32dc45
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app_vue/src/components/sensorRouteBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ watch(
}
);
function openGmaps() {}
function exportRouteGmaps() {}
function draggedRoute() {
state.drag = false;
routeStore.setSelectedRouteList(state.selectedRouteList); // update state with new route order
routeStore.googUpdateRouteStats();
}
function exportRouteClicked() {
function exportRouteCSV() {
let csv = '';
const duration = routeStore.getRouteDuration || '';
const distance = routeStore.getRouteDistance || 0;
Expand Down Expand Up @@ -142,7 +142,7 @@ function exportRouteClicked() {
v-if="state.selectedRouteList && state.selectedRouteList.length > 1"
class="mt-2 w-100 route-display__gmaps"
:color="telusUi.green"
@click="openGmaps()"
@click="exportRouteGmaps"
>
<span class="mr-1">Open in Google Maps</span>
<vue-feather type="map-pin"></vue-feather>
Expand All @@ -152,7 +152,7 @@ function exportRouteClicked() {
v-if="state.selectedRouteList && state.selectedRouteList.length > 1"
class="mt-2 w-100 route-display__export"
:color="telusUi.green"
@click="exportRouteClicked"
@click="exportRouteCSV"
>
<span class="mr-1">Export to CSV</span>
<vue-feather type="upload"></vue-feather>
Expand Down

0 comments on commit e32dc45

Please sign in to comment.