Groundnet Scan
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user