Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Made provider address / location clickable #138 #162

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions website/components/Store.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
<div class="card-header">
<div class="row">
<h5 class="col-sm mb-0">
{{ title }}
{{ title }} -
<a :href="`${fullAddressLink}`" target="_blank">
{{ fullAddress }}
</a>
</h5>
<div v-if="store.distance" class="col-sm-auto">
{{ store.distance }} miles
Expand Down Expand Up @@ -144,7 +147,6 @@ export default {
) {
title += ` - ${this.store.properties.name}`;
}
title += ` - ${this.fullAddress}`;

return title;
},
Expand All @@ -160,6 +162,12 @@ export default {
.filter((value) => !!value)
.join(", ");
},

fullAddressLink() {
let link = "https://www.google.com/maps/place/";
link += `${this.fullAddress}`.replace(/ /g, "+");
return link;
},
},

created() {
Expand Down