From 821da07c4e66f5a7963837c0b4414f9ee64c26ed Mon Sep 17 00:00:00 2001 From: portree_kid Date: Wed, 25 Mar 2020 14:51:01 +0100 Subject: [PATCH] Save popup --- package.json | 2 +- src/renderer/components/CheckPanel.vue | 1 + src/renderer/components/EditBar.vue | 11 +++++++---- src/renderer/loaders/TaxiwaySegmentExtender.js | 2 +- src/renderer/loaders/groundnet_writer.js | 3 +++ 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 5e261c0..0d6e690 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "flightgear-airports", - "version": "0.2.0", + "version": "0.0.3", "author": "portree_kid ", "description": "An software to design Flightgear groundnets", "license": "GPL v3", diff --git a/src/renderer/components/CheckPanel.vue b/src/renderer/components/CheckPanel.vue index e67951d..0957da3 100644 --- a/src/renderer/components/CheckPanel.vue +++ b/src/renderer/components/CheckPanel.vue @@ -46,5 +46,6 @@ } .el-col { border-radius: 1px; + padding: 0pt; } diff --git a/src/renderer/components/EditBar.vue b/src/renderer/components/EditBar.vue index f054c3a..97c0b3a 100644 --- a/src/renderer/components/EditBar.vue +++ b/src/renderer/components/EditBar.vue @@ -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 diff --git a/src/renderer/loaders/TaxiwaySegmentExtender.js b/src/renderer/loaders/TaxiwaySegmentExtender.js index 64880df..3dabf23 100644 --- a/src/renderer/loaders/TaxiwaySegmentExtender.js +++ b/src/renderer/loaders/TaxiwaySegmentExtender.js @@ -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); } }); diff --git a/src/renderer/loaders/groundnet_writer.js b/src/renderer/loaders/groundnet_writer.js index 61713a5..ff43615 100644 --- a/src/renderer/loaders/groundnet_writer.js +++ b/src/renderer/loaders/groundnet_writer.js @@ -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']); }