diff --git a/freedata_gui/src/components/dynamic_components.vue b/freedata_gui/src/components/dynamic_components.vue index e55a4a5c..d6c97fe1 100644 --- a/freedata_gui/src/components/dynamic_components.vue +++ b/freedata_gui/src/components/dynamic_components.vue @@ -33,6 +33,7 @@ import grid_beacon from "./grid/grid_beacon.vue"; import grid_mycall_small from "./grid/grid_mycall small.vue"; import grid_scatter from "./grid/grid_scatter.vue"; import grid_stats_chart from "./grid/grid_stats_chart.vue"; +import grid_swr_meter from "./grid/grid_swr_meter.vue"; let count = ref(0); let grid = null; // DO NOT use ref(null) as proxies GS will break all logic when comparing structures... see https://github.com/gridstack/gridstack.js/issues/2115 @@ -155,6 +156,7 @@ new gridWidget( "Rig", 6, ), + new gridWidget( dbfs_meter, { x: 20, y: 0, w: 4, h: 8 }, @@ -256,7 +258,16 @@ new gridWidget( "Stats", 20, ), - //Next new widget ID should be 21 + new gridWidget( + grid_swr_meter, + { x: 16, y: 0, w: 4, h: 8 }, + "SWR", + true, + true, + "Rig", + 21, + ), + //Next new widget ID should be 22 ]; @@ -278,11 +289,6 @@ function set_radio_parameter_rflevel(){ } - - - - - function savePreset() { settingsStore.local.grid_preset=settingsStore.local.grid_layout; diff --git a/freedata_gui/src/components/grid/grid_active_broadcasts_vert.vue b/freedata_gui/src/components/grid/grid_active_broadcasts_vert.vue index e04333c8..5953c0c8 100644 --- a/freedata_gui/src/components/grid/grid_active_broadcasts_vert.vue +++ b/freedata_gui/src/components/grid/grid_active_broadcasts_vert.vue @@ -121,7 +121,7 @@ window.addEventListener( role="switch" id="flexSwitchAFK" v-model="state.away_from_key" - @click="setAwayFromKey()" + @change="setAwayFromKey()" /> +import { setActivePinia } from "pinia"; +import pinia from "../../store/index"; +setActivePinia(pinia); + +import { useStateStore } from "../../store/stateStore.js"; +const state = useStateStore(pinia); + +