Ask for confirmation when stop tnc button is clicked

This commit is contained in:
Mashintime 2023-02-10 21:43:42 -05:00
parent 321ac76e15
commit 544efda23c

View file

@ -1450,10 +1450,10 @@ document.getElementById('hamlib_rigctld_stop').addEventListener('click', () => {
// stopTNC button clicked
document.getElementById("stopTNC").addEventListener("click", () => {
if (!confirm("Stop the TNC?")) return;
daemon.stopTNC();
// collapse settings screen
// deactivated this part so start / stop is a little bit more smooth. We are getting problems because of network delay
/*
@ -1467,9 +1467,6 @@ document.getElementById('hamlib_rigctld_stop').addEventListener('click', () => {
var collapseFourthRow = new bootstrap.Collapse(document.getElementById('collapseFourthRow'), {toggle: false})
collapseFourthRow.hide()
*/
})