@abi-software/map-side-bar 2.7.3-beta.3 → 2.7.3-beta.4
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/package.json
CHANGED
|
@@ -406,16 +406,11 @@ export default {
|
|
|
406
406
|
},
|
|
407
407
|
onConnectivityInfoLoaded: function (result) {
|
|
408
408
|
result.loaded = true;
|
|
409
|
-
|
|
410
409
|
const stepItemRef = this.$refs['stepItem-' + result.id];
|
|
411
|
-
|
|
410
|
+
const contentRef = this.$refs['content'];
|
|
412
411
|
this.$nextTick(() => {
|
|
413
|
-
if (stepItemRef && stepItemRef[0]) {
|
|
414
|
-
stepItemRef[0].
|
|
415
|
-
behavior: 'smooth',
|
|
416
|
-
block: 'start',
|
|
417
|
-
inline: 'nearest',
|
|
418
|
-
});
|
|
412
|
+
if (contentRef && stepItemRef && stepItemRef[0]) {
|
|
413
|
+
contentRef.scrollTop = stepItemRef[0].offsetTop;
|
|
419
414
|
}
|
|
420
415
|
});
|
|
421
416
|
},
|
|
@@ -635,19 +635,21 @@ export default {
|
|
|
635
635
|
}
|
|
636
636
|
},
|
|
637
637
|
getConnectionsFromMap: async function () {
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
638
|
+
if (this.entry.mapuuid) {
|
|
639
|
+
const url =
|
|
640
|
+
this.flatmapApi +
|
|
641
|
+
`flatmap/${this.entry.mapuuid}/connectivity/${this.entry.featureId[0]}`;
|
|
642
|
+
|
|
643
|
+
try {
|
|
644
|
+
const response = await fetch(url);
|
|
645
|
+
if (!response.ok) {
|
|
646
|
+
throw new Error(`Response status: ${response.status}`);
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
return await response.json();
|
|
650
|
+
} catch (error) {
|
|
651
|
+
throw new Error(error);
|
|
646
652
|
}
|
|
647
|
-
|
|
648
|
-
return await response.json();
|
|
649
|
-
} catch (error) {
|
|
650
|
-
throw new Error(error);
|
|
651
653
|
}
|
|
652
654
|
},
|
|
653
655
|
onConnectivityActionClick: function (data) {
|