|
|
@@ -49,9 +49,18 @@
|
|
49
|
49
|
</div>
|
|
50
|
50
|
<div class="panel-left px-5 pb-5 text-center">
|
|
51
|
51
|
<h4 class="text-white">Share this Property</h4>
|
|
52
|
|
- <a id="fb_share" href="#" target="_blank"
|
|
53
|
|
- ><img src="img/icon-facebook.svg" alt="Share on Facebook" class="col-3 p-1 mx-1"
|
|
54
|
|
- /></a>
|
|
|
52
|
+ <ShareNetwork
|
|
|
53
|
+ v-if="currentUrl !== ''"
|
|
|
54
|
+ network="facebook"
|
|
|
55
|
+ :url="currentUrl"
|
|
|
56
|
+ title="Uni-Vate Property Listing"
|
|
|
57
|
+ description="Check out this property on Uni-Vate Properties!"
|
|
|
58
|
+ quote="The hot reload is so fast it\'s near instant. - Evan You"
|
|
|
59
|
+ hashtags="vuejs,vite"
|
|
|
60
|
+ >
|
|
|
61
|
+ <img src="img/icon-facebook.svg" alt="Share on Facebook" class="col-3 p-1 mx-1" />
|
|
|
62
|
+ </ShareNetwork>
|
|
|
63
|
+
|
|
55
|
64
|
<a
|
|
56
|
65
|
href="mailto:?Subject=Simple Share Buttons&Body=I%20saw%20this%20and%20thought%20of%20you!%20 https://www.univateproperties.co.za/"
|
|
57
|
66
|
><img src="/img/icon-email.svg" alt="Share on email" class="col-3 p-1 mx-1"
|
|
|
@@ -65,6 +74,7 @@
|
|
65
|
74
|
/></a>
|
|
66
|
75
|
</div>
|
|
67
|
76
|
</div>
|
|
|
77
|
+ <div></div>
|
|
68
|
78
|
<div class="col-md-8 p-5 resort-profile">
|
|
69
|
79
|
<h2 v-if="property.showAddress">
|
|
70
|
80
|
<div style="display:inline" v-if="property.propertyName !== null">
|
|
|
@@ -127,7 +137,7 @@
|
|
127
|
137
|
/* eslint-disable */
|
|
128
|
138
|
import { mapState, mapActions } from "vuex";
|
|
129
|
139
|
import gallery from "../../../shared/gallerySlideShow";
|
|
130
|
|
-import { ShareFacebook } from "vue-share-social";
|
|
|
140
|
+import { ShareFacebook } from "vue-social-sharing";
|
|
131
|
141
|
export default {
|
|
132
|
142
|
components: {
|
|
133
|
143
|
gallery,
|
|
|
@@ -139,16 +149,15 @@ export default {
|
|
139
|
149
|
},
|
|
140
|
150
|
created() {
|
|
141
|
151
|
//this.getListsForPropertyEdit(this.property.id);
|
|
142
|
|
- console.log(this.property.displayData);
|
|
143
|
152
|
},
|
|
144
|
|
- mounted() {
|
|
145
|
|
- // var facebookShare = document.getElementById("fb_share");
|
|
146
|
|
- // facebookShare.href = "http://www.facebook.com/share.php?u=" + encodeURIComponent(location.href);
|
|
|
153
|
+ async mounted() {
|
|
|
154
|
+ this.currentUrl = window.location.origin + this.$route.fullPath;
|
|
147
|
155
|
},
|
|
148
|
156
|
data() {
|
|
149
|
157
|
return {
|
|
150
|
158
|
index: null,
|
|
151
|
|
- date: new Date()
|
|
|
159
|
+ date: new Date(),
|
|
|
160
|
+ currentUrl: ""
|
|
152
|
161
|
};
|
|
153
|
162
|
},
|
|
154
|
163
|
methods: {
|