Grid: PTT

This commit is contained in:
Mashintime 2023-12-12 17:20:48 -05:00
parent 94f23d47b7
commit ec06389507
2 changed files with 20 additions and 0 deletions

View file

@ -19,6 +19,7 @@ import s_meter from "./grid/grid_s-meter.vue";
import dbfs_meter from "./grid/grid_dbfs.vue"; import dbfs_meter from "./grid/grid_dbfs.vue";
import grid_activities from "./grid/grid_activities.vue"; import grid_activities from "./grid/grid_activities.vue";
import grid_button from "./grid/button.vue"; import grid_button from "./grid/button.vue";
import grid_ptt from "./grid/grid_ptt.vue";
import { stateDispatcher } from "../js/eventHandler"; import { stateDispatcher } from "../js/eventHandler";
let count = ref(0); let count = ref(0);
@ -127,6 +128,14 @@ const gridWidgets = [
true, true,
"Broadcasts", "Broadcasts",
), ),
new gridWidget(
grid_ptt,
{ x: 3, y: 27, w: 2, h: 8 },
"PTT indicator",
false,
true,
"Rig",
),
]; ];
onMounted(() => { onMounted(() => {
grid = GridStack.init({ grid = GridStack.init({

View file

@ -0,0 +1,11 @@
<script setup lang="ts">
import { setActivePinia } from "pinia";
import pinia from "../../store/index";
setActivePinia(pinia);
import { useStateStore } from "../../store/stateStore.js";
const state = useStateStore(pinia);
</script>
<template>
<div class="d-flex justify-content-center align-items-center object-fill border rounded w-100 h-100" :class="state.ptt_state === true ? 'text-bg-warning' : 'text-bg-light'">PTT</div>
</template>