Deselection

This commit is contained in:
portree_kid 2020-05-16 10:45:56 +02:00
parent 3b9ab26035
commit f9f9256ffe

View File

@ -255,13 +255,14 @@
if(e1.__vertex._icon.style!=null) {
e1.__vertex._icon.style['background-color'] = 'red';
}
return;
}
});
} else if (element instanceof L.RunwayNode) {
var latlng = {};
latlng.lat = element._latlng.lat;
latlng.lng = element._latlng.lng;
if (this.selectedItem != null) {
if (this.selectedItem != null && this.selectedItem.deselect !== undefined) {
this.selectedItem.deselect();
}
this.selectedItem = element;
@ -272,7 +273,7 @@
var latlng = {};
latlng.lat = element._latlng.lat;
latlng.lng = element._latlng.lng;
if (this.selectedItem != null) {
if (this.selectedItem != null && this.selectedItem.deselect !== undefined) {
this.selectedItem.deselect();
}
this.selectedItem = element;
@ -734,7 +735,7 @@
fs.copyFileSync(f, fNew)
this.$message({
type: 'info',
message: `Copied to ${f}`
message: `Copied to ${fNew}`
});
},
setVisible(visible) {