@sedoo/unidoo 0.1.17 → 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/unidoo/unidoo.common.js +1 -1
- package/dist/unidoo/unidoo.common.js.map +1 -1
- package/dist/unidoo/unidoo.umd.js +1 -1
- package/dist/unidoo/unidoo.umd.js.map +1 -1
- package/dist/unidoo/unidoo.umd.min.js +1 -1
- package/dist/unidoo/unidoo.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/UnidooMapGeoFeatures.vue +7 -10
package/package.json
CHANGED
|
@@ -108,19 +108,14 @@ export default {
|
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
created() {
|
|
111
|
-
//
|
|
112
|
-
if (
|
|
113
|
-
// Access and use localStorage here
|
|
114
|
-
if (!localStorage.getItem('visitedBefore') && this.disablePopup.toLowerCase() !== 'true') {
|
|
111
|
+
// Show the toast notification if the disablePopup prop is not set to true.
|
|
112
|
+
if (this.disablePopup.toLowerCase() !== 'true') {
|
|
115
113
|
this.showToast = true;
|
|
116
|
-
localStorage.setItem('visitedBefore', 'true'); // Set flag indicating user has visited
|
|
117
|
-
}
|
|
118
|
-
} else {
|
|
119
|
-
console.log('localStorage is not available.');
|
|
120
114
|
}
|
|
121
115
|
},
|
|
122
116
|
mounted() {
|
|
123
117
|
this.initMap();
|
|
118
|
+
//
|
|
124
119
|
if (!this.disablePopup !== 'true') {
|
|
125
120
|
console.log('axios.then : initPopup()');
|
|
126
121
|
this.initPopup();
|
|
@@ -141,8 +136,10 @@ export default {
|
|
|
141
136
|
methods: {
|
|
142
137
|
loadFeatures() {
|
|
143
138
|
|
|
144
|
-
|
|
145
|
-
|
|
139
|
+
if (this.popupOverlay) {
|
|
140
|
+
// Close the popup if it is already open before loading new features.
|
|
141
|
+
this.closePopup();
|
|
142
|
+
}
|
|
146
143
|
|
|
147
144
|
this.axios.get(this.serviceUrl)
|
|
148
145
|
.then(res => {
|