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", "name": "flightgear-airports",
"version": "0.2.0", "version": "0.0.3",
"author": "portree_kid <keith.paterson@gmx.de>", "author": "portree_kid <keith.paterson@gmx.de>",
"description": "An software to design Flightgear groundnets", "description": "An software to design Flightgear groundnets",
"license": "GPL v3", "license": "GPL v3",

View File

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

View File

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

View File

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

View File

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