diff --git a/package.json b/package.json index 0d6e690..bba56fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "flightgear-airports", - "version": "0.0.3", + "version": "0.0.4", "author": "portree_kid ", "description": "An software to design Flightgear groundnets", "license": "GPL v3", diff --git a/src/renderer/components/AirportEdit.vue b/src/renderer/components/AirportEdit.vue index 37c231f..885b00a 100644 --- a/src/renderer/components/AirportEdit.vue +++ b/src/renderer/components/AirportEdit.vue @@ -3,28 +3,28 @@
ICAO : - {{ icao }} + {{ icao }} Name : - {{ name }} - - - Flights : - {{ flights }} + {{ name }} Airlines : - {{ airlines }} + + {{item.value}} + + + + Flights : + {{ flights }} + Parking : + {{ parking }} Groundnet : {{groundnet}} - - Parking Positions : - {{ parking }} -

Frequencies

@@ -32,8 +32,8 @@ + Add - Add @@ -52,10 +52,10 @@ } }, computed: { - editing: function () { - return this.$parent.$parent.$parent.$refs.editLayer !== undefined && - this.$parent.$parent.$parent.$refs.editLayer.editing && - this.$store.state.Editable.type === 'airport' + editing: { + get: function () { + return this.$parent.$parent.$parent.$refs.editLayer.editing + } }, icao: function () { return this.$store.state.Editable.data.airport.icao @@ -67,7 +67,12 @@ return this.$store.state.Editable.data.airport.flights }, airlines: function () { - return this.$store.state.Editable.data.airport.airlines + var airlineCodes = [] + var storedairlineCodes = this.$store.state.Airports.currentAirport.airlines + storedairlineCodes.forEach(element => { + airlineCodes.push({value: element, label: element}) + }) + return airlineCodes }, groundnet: function () { return this.$store.state.Editable.data.airport.groundnet @@ -90,6 +95,7 @@ \ No newline at end of file