#90 add multiple airlines
This commit is contained in:
parent
67b2220bbe
commit
84fd39c3b5
1562
package-lock.json
generated
1562
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -77,6 +77,7 @@
|
|||||||
},
|
},
|
||||||
"nsis": {
|
"nsis": {
|
||||||
"oneClick": false,
|
"oneClick": false,
|
||||||
|
"perMachine": true,
|
||||||
"allowToChangeInstallationDirectory": true
|
"allowToChangeInstallationDirectory": true
|
||||||
},
|
},
|
||||||
"linux": {
|
"linux": {
|
||||||
@ -94,6 +95,7 @@
|
|||||||
"element-ui": "^2.13.2",
|
"element-ui": "^2.13.2",
|
||||||
"file-url": "^3.0.0",
|
"file-url": "^3.0.0",
|
||||||
"fs": "0.0.1-security",
|
"fs": "0.0.1-security",
|
||||||
|
"fs-extra": "^9.0.1",
|
||||||
"geo-coordinates-parser": "^1.2.4",
|
"geo-coordinates-parser": "^1.2.4",
|
||||||
"geodesy": "^2.2.0",
|
"geodesy": "^2.2.0",
|
||||||
"idb": "^4.0.5",
|
"idb": "^4.0.5",
|
||||||
@ -143,7 +145,7 @@
|
|||||||
"del": "^3.0.0",
|
"del": "^3.0.0",
|
||||||
"devtron": "^1.4.0",
|
"devtron": "^1.4.0",
|
||||||
"electron": "^7.2.4",
|
"electron": "^7.2.4",
|
||||||
"electron-builder": "^21.2.0",
|
"electron-builder": "^22.10.4",
|
||||||
"electron-devtools-installer": "^2.2.4",
|
"electron-devtools-installer": "^2.2.4",
|
||||||
"eslint": "^4.19.1",
|
"eslint": "^4.19.1",
|
||||||
"eslint-config-standard": "^11.0.0",
|
"eslint-config-standard": "^11.0.0",
|
||||||
|
@ -15,13 +15,12 @@ You should have received a copy of the GNU General Public License along with FG
|
|||||||
<el-dialog
|
<el-dialog
|
||||||
title="Add Airline"
|
title="Add Airline"
|
||||||
:visible.sync="dialogVisible"
|
:visible.sync="dialogVisible"
|
||||||
width="20%"
|
width="40%"
|
||||||
:before-close="handleClose">
|
:before-close="handleClose">
|
||||||
<span>Add an selectable airline to {{ icao }} {{ name }}</span>
|
<span>Add an selectable airline to {{ icao }} {{ name }}</span>
|
||||||
<el-input
|
<el-input
|
||||||
placeholder="Please input airline"
|
placeholder="Please input airline(s)"
|
||||||
v-model="airlineCode"
|
v-model="airlineCode"
|
||||||
maxlength="3"
|
|
||||||
></el-input>
|
></el-input>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button @click="dialogVisible = false">Cancel</el-button>
|
<el-button @click="dialogVisible = false">Cancel</el-button>
|
||||||
@ -193,7 +192,11 @@ export default {
|
|||||||
},
|
},
|
||||||
addAirline () {
|
addAirline () {
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
this.$store.dispatch('addAirline', this.airlineCode)
|
this.airlineCode.split(/[ ,]/).forEach(element => {
|
||||||
|
if (element.length === 3) {
|
||||||
|
this.$store.dispatch('addAirline', element)
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
addFrequency () {
|
addFrequency () {
|
||||||
this.$store.dispatch('addFrequency', {type: 'AWOS', value: 0})
|
this.$store.dispatch('addFrequency', {type: 'AWOS', value: 0})
|
||||||
|
Loading…
Reference in New Issue
Block a user