Skip to content

Commit

Permalink
Activate DIRECTIONS link.
Browse files Browse the repository at this point in the history
  • Loading branch information
FlipperPA committed Dec 28, 2019
1 parent 445da6c commit f5fa1a5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions meeting_guide/static/meeting_guide/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -51363,9 +51363,11 @@ function (_Component) {
longitude: meeting.longitude,
zoom: 14
};
} //set page title
} //create a link for directions


meeting.direction_link = "https://www.google.com/maps?daddr=" + meeting.latitude + "," + meeting.longitude + "&saddr=Current+Location&q=" + encodeURIComponent(meeting.formatted_address); //set page title

document.title = meeting.name;
}
}
Expand All @@ -51387,7 +51389,8 @@ function (_Component) {
className: "mb-3 col-md-4 mb-md-0"
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
className: "btn btn-outline-secondary btn-block mb-3",
href: ""
href: meeting.direction_link,
target: "_blank"
}, _settings__WEBPACK_IMPORTED_MODULE_3__["strings"].get_directions), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
className: "list-group"
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
Expand Down Expand Up @@ -51477,9 +51480,7 @@ function (_Component) {
offsetTop: -_settings__WEBPACK_IMPORTED_MODULE_3__["settings"].marker_style.height
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", {
className: "font-weight-light"
}, meeting.location), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, meeting.formatted_address), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
className: "btn btn-outline-secondary btn-block"
}, "Directions")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
}, meeting.location), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, meeting.formatted_address)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
className: "control"
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_map_gl__WEBPACK_IMPORTED_MODULE_2__["NavigationControl"], {
showCompass: false,
Expand Down

0 comments on commit f5fa1a5

Please sign in to comment.