Save popup

This commit is contained in:
portree_kid 2020-03-25 14:51:01 +01:00
parent 3c98a0720b
commit 821da07c4e
5 changed files with 13 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{
"name": "flightgear-airports",
"version": "0.2.0",
"version": "0.0.3",
"author": "portree_kid <keith.paterson@gmx.de>",
"description": "An software to design Flightgear groundnets",
"license": "GPL v3",

View File

@ -46,5 +46,6 @@
}
.el-col {
border-radius: 1px;
padding: 0pt;
}
</style>

View File

@ -91,12 +91,15 @@
this.editing = false
Vue.set(this, 'saveDialogVisible', true)
this.editing = false
Vue.nextTick( () => {
this.$parent.$parent.$refs.editLayer.save()
this.$parent.$parent.$refs.editLayer.disableEdit()
Vue.set(this, 'saveDialogVisible', false)
Vue.nextTick( function () {
setTimeout( this.saveDefered.bind(this), 100);
}, this)
},
saveDefered () {
this.$parent.$parent.$refs.editLayer.save()
this.$parent.$parent.$refs.editLayer.disableEdit()
Vue.set(this, 'saveDialogVisible', false)
},
pollData () {
var workery = this.worker
var view = this

View File

@ -76,8 +76,8 @@ exports.extendTaxiSegment = function (taxiwaySegment) {
);
});
this.on('editable:drawing:move', function (event) {
console.log(event.target);
if (dragIndex >= 0) {
console.log('GlueDrag' + event.target);
this.follow(dragIndex, event);
}
});

View File

@ -31,6 +31,9 @@ function findRouteToPushback (index) {
function walkPushbackRoute (index, walkedNodes, pushBackNodes) {
var polyLines = featureLookup[index];
if (polyLines===undefined) {
return;
}
if (pushBackNodeLookup[index]!==undefined) {
pushBackNodes.push(pushBackNodeLookup[index]['@index']);
}