mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Some local settings work
This commit is contained in:
parent
e569e352ad
commit
c06bb4abfa
3 changed files with 13 additions and 41 deletions
|
@ -9,23 +9,7 @@ import { settingsStore as settings } from "../store/settingsStore.js";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="input-group input-group-sm mb-1">
|
|
||||||
<label class="input-group-text w-50">Enable autotune</label>
|
|
||||||
<label class="input-group-text w-50">
|
|
||||||
<div class="form-check form-switch form-check-inline ms-2">
|
|
||||||
<input
|
|
||||||
class="form-check-input"
|
|
||||||
type="checkbox"
|
|
||||||
id="autoTuneSwitch"
|
|
||||||
@change="setConfig"
|
|
||||||
v-model="settings.auto_tune"
|
|
||||||
/>
|
|
||||||
<label class="form-check-label" for="autoTuneSwitch"
|
|
||||||
>adjust ALC on TX</label
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div class="input-group input-group-sm mb-1">
|
<div class="input-group input-group-sm mb-1">
|
||||||
<label class="input-group-text w-50">Enable FSK mode</label>
|
<label class="input-group-text w-50">Enable FSK mode</label>
|
||||||
<label class="input-group-text w-50">
|
<label class="input-group-text w-50">
|
||||||
|
@ -35,7 +19,7 @@ import { settingsStore as settings } from "../store/settingsStore.js";
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
id="fskModeSwitch"
|
id="fskModeSwitch"
|
||||||
@change="setConfig"
|
@change="setConfig"
|
||||||
v-model="settings.enable_fsk"
|
v-model="settings.remote.MODEM.enable_fsk"
|
||||||
disabled
|
disabled
|
||||||
/>
|
/>
|
||||||
<label class="form-check-label" for="fskModeSwitch"
|
<label class="form-check-label" for="fskModeSwitch"
|
||||||
|
@ -53,7 +37,7 @@ import { settingsStore as settings } from "../store/settingsStore.js";
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
id="enableMeshSwitch"
|
id="enableMeshSwitch"
|
||||||
@change="setConfig"
|
@change="setConfig"
|
||||||
v-model="settings.enable_mesh_features"
|
v-model="settings.remote.MESH.enable_protocol"
|
||||||
/>
|
/>
|
||||||
<label class="form-check-label" for="enableMeshSwitch"
|
<label class="form-check-label" for="enableMeshSwitch"
|
||||||
>experimental! REALLY!</label
|
>experimental! REALLY!</label
|
||||||
|
|
|
@ -19,7 +19,7 @@ function saveSettings() {
|
||||||
class="form-select form-select-sm w-50"
|
class="form-select form-select-sm w-50"
|
||||||
id="theme_selector"
|
id="theme_selector"
|
||||||
@change="saveSettings"
|
@change="saveSettings"
|
||||||
v-model="settings.theme"
|
v-model="settings.local.theme"
|
||||||
disabled
|
disabled
|
||||||
>
|
>
|
||||||
<option value="default_light">Default (light)</option>
|
<option value="default_light">Default (light)</option>
|
||||||
|
@ -78,7 +78,7 @@ function saveSettings() {
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
id="GraphicsSwitch"
|
id="GraphicsSwitch"
|
||||||
@change="saveSettings"
|
@change="saveSettings"
|
||||||
v-model="settings.high_graphics"
|
v-model="settings.local.high_graphics"
|
||||||
disabled
|
disabled
|
||||||
/>
|
/>
|
||||||
<label class="form-check-label" for="GraphicsSwitch"
|
<label class="form-check-label" for="GraphicsSwitch"
|
||||||
|
@ -104,7 +104,7 @@ function saveSettings() {
|
||||||
class="form-select form-select-sm w-50"
|
class="form-select form-select-sm w-50"
|
||||||
id="update_channel_selector"
|
id="update_channel_selector"
|
||||||
@change="saveSettings"
|
@change="saveSettings"
|
||||||
v-model="settings.update_channel"
|
v-model="settings.local.update_channel"
|
||||||
disabled
|
disabled
|
||||||
>
|
>
|
||||||
<option value="latest">stable</option>
|
<option value="latest">stable</option>
|
||||||
|
@ -121,7 +121,7 @@ function saveSettings() {
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
id="NotificationSwitch"
|
id="NotificationSwitch"
|
||||||
@change="saveSettings"
|
@change="saveSettings"
|
||||||
v-model="settings.enable_sys_notification"
|
v-model="settings.local.enable_sys_notification"
|
||||||
disabled
|
disabled
|
||||||
/>
|
/>
|
||||||
<label class="form-check-label" for="NotificationSwitch"
|
<label class="form-check-label" for="NotificationSwitch"
|
||||||
|
@ -130,22 +130,5 @@ function saveSettings() {
|
||||||
</div>
|
</div>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-group input-group-sm mb-1">
|
|
||||||
<label class="input-group-text w-50">Auto-start Modem/rigctld</label>
|
|
||||||
<label class="input-group-text w-50">
|
|
||||||
<div class="form-check form-switch form-check-inline">
|
|
||||||
<input
|
|
||||||
class="form-check-input"
|
|
||||||
type="checkbox"
|
|
||||||
id="AutoStartSwitch"
|
|
||||||
@change="saveSettings"
|
|
||||||
v-model="settings.auto_start"
|
|
||||||
disabled
|
|
||||||
/>
|
|
||||||
<label class="form-check-label" for="AutoStartSwitch"
|
|
||||||
>Start on app launch</label
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -9,6 +9,11 @@ export const settingsStore = reactive({
|
||||||
enable_fft: false,
|
enable_fft: false,
|
||||||
spectrum: "waterfall",
|
spectrum: "waterfall",
|
||||||
wf_theme: 0,
|
wf_theme: 0,
|
||||||
|
theme: "default_light",
|
||||||
|
high_graphics: true,
|
||||||
|
update_channel: "alpha",
|
||||||
|
enable_sys_notification: true,
|
||||||
|
|
||||||
},
|
},
|
||||||
remote: {
|
remote: {
|
||||||
AUDIO: {
|
AUDIO: {
|
||||||
|
|
Loading…
Reference in a new issue