diff --git a/gui/preload-main.js b/gui/preload-main.js index 8a7f2873..c80a9fba 100644 --- a/gui/preload-main.js +++ b/gui/preload-main.js @@ -909,7 +909,15 @@ ipcRenderer.on('action-update-tnc-state', (event, arg) => { var toastDATACHANNELreceivedopener = document.getElementById('toastDATACHANNELreceivedopener') var toast = bootstrap.Toast.getOrCreateInstance(toastDATACHANNELreceivedopener) // Returns a Bootstrap toast instance toast.show() - } + } + // TRANSMISSION STOPPED + if (arg.info[i] == "TRANSMISSION;STOPPED"){ + var toastDATACHANNELreceivedopener = document.getElementById('toastTRANSMISSIONstopped') + var toast = bootstrap.Toast.getOrCreateInstance(toastDATACHANNELreceivedopener) // Returns a Bootstrap toast instance + toast.show() + } + + // DATACHANNEL FAILED TOAST if (arg.info[i] == "DATACHANNEL;FAILED"){ var toastDATACHANNELfailed = document.getElementById('toastDATACHANNELfailed') diff --git a/gui/src/index.html b/gui/src/index.html index b0498d1d..4072fdbc 100644 --- a/gui/src/index.html +++ b/gui/src/index.html @@ -143,6 +143,15 @@ + + + +