Groundnet Scan

This commit is contained in:
portree_kid
2019-12-17 21:10:58 +01:00
parent b81348bdb8
commit 6adffb8878
29 changed files with 1744 additions and 1496 deletions
+41 -13
View File
@@ -1,34 +1,62 @@
<template>
<div>
<h1 class="leaflet-sidebar-header">
Settings
<div class="leaflet-sidebar-close">
<i class="fa fa-caret-left"></i>
</div>
</h1>
<div id="panel" width="100%">
<el-row>
<el-col :span="7">Flightgear Directory</el-col>
<el-col :span="15">{{ flightgear_directory }}</el-col>
<el-col :span="2">
<directory-select @input="directorySelect"></directory-select>
</el-col>
</el-row>
</div>
</div>
</template>
<script lang="js">
import FileSelect from './FileSelect'
import DirectorySelect from './DirectorySelect'
export default {
name: 'settings-panel',
components: { DirectorySelect, FileSelect },
props: [],
mounted () {
if (this.$parent._isMounted) {
this.$parent.sidebar.addPanel({
id: 'settings',
tab: '<i class="fa fa-gear vertical-center"/>',
title: 'Settings',
pane: '<div id="settings-div"></div>'
})
}
},
data () {
return {
selected: 'Undefined'
}
},
methods: {
buttonClick: function () {
this.$store.commit('TOGGLE_HYDRATED')
},
directorySelect: function (flightgearDirectory) {
console.log(flightgearDirectory)
this.$store.commit('SETTINGS_DIRECTORY', flightgearDirectory.path)
}
},
computed: {
hydrated: function () {
return this.$store.state.hydrated
},
flightgear_directory: function () {
return this.$store.state.settings.flightgearDirectory
}
}
}
}
</script>
<style scoped lang="scss">
<style>
.el-row {
margin-bottom: 20px;
}
.el-col {
border-radius: 4px;
}
</style>