add gui reload button

pull/746/head
DJ2LS 2024-07-20 20:31:56 +02:00
parent d9e4ca3f1e
commit 8fe08b3411
2 changed files with 13 additions and 1 deletions

View File

@ -66,6 +66,11 @@ function getRigControlStuff() {
function testHamlib() {
sendModemCQ();
}
function reloadGUI(){
location.reload();
}
</script>
<template>
@ -81,6 +86,13 @@ function testHamlib() {
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5">Modem check</h1>
<button
type="button"
class="ms-5 btn btn-secondary"
aria-label="Reload GUI"
@click="reloadGUI"
>GUI problems? Reload it!</button>
<button
type="button"
class="btn-close"

View File

@ -38,7 +38,7 @@ import {
export async function loadAllData() {
// TODO: Make this working
let stateData = await getModemState();
//console.log(stateData);
console.log(stateData);
let radioData = await getRadioStatus();
//console.log(radioData);