show connected station in chat

This commit is contained in:
DJ2LS 2023-05-27 11:28:07 +02:00
parent ded3b42398
commit b6edd073b2
3 changed files with 23 additions and 0 deletions

View file

@ -454,6 +454,8 @@ ipcMain.on("request-update-transmission-status", (event, arg) => {
ipcMain.on("request-update-reception-status", (event, arg) => {
win.webContents.send("action-update-reception-status", arg);
chat.webContents.send("action-update-reception-status", arg);
});
ipcMain.on("request-open-tnc-log", () => {

View file

@ -661,8 +661,18 @@ ipcRenderer.on("return-select-user-image", (event, arg) => {
});
});
ipcRenderer.on("action-update-reception-status", (event, arg) => {
var data = arg["data"][0];
document.getElementById("txtConnectedWithChat").textContent = data.dxcallsign;
});
ipcRenderer.on("action-update-transmission-status", (event, arg) => {
var data = arg["data"][0];
document.getElementById("txtConnectedWithChat").textContent = data.dxcallsign;
console.log(data.status);
if (data.uuid !== "no-uuid") {
db.get(data.uuid, {

View file

@ -264,7 +264,18 @@
Help
</button>
</li>
</ul>
<span
class="input-group-text ms-2"
id="txtConnectedWithChat"
data-bs-toggle="tooltip"
data-bs-trigger="hover"
title="Connected with"
>------</span>
</div>
</div>