4 Commits
4 changed files with 6 additions and 4 deletions
+1
View File
@@ -1,4 +1,5 @@
resources/netbird* resources/netbird*
resources/*.dll
# Logs # Logs
logs logs
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "vynte-connect", "name": "vynte-connect",
"productName": "Vynte Connect", "productName": "Vynte Connect",
"version": "1.0.0-rc.1", "version": "1.0.0-rc.2",
"description": "VPN used to access internal Vynte services", "description": "VPN used to access internal Vynte services",
"main": ".vite/build/main.js", "main": ".vite/build/main.js",
"private": true, "private": true,
+3 -1
View File
@@ -127,7 +127,9 @@ async function refreshStatus() {
})); }));
} }
return setStatus(normalizeStatus(result.stdout, cachedStatus)); const status = normalizeStatus(result.stdout, cachedStatus);
if (status.state === "disconnected" && cachedStatus.state === "connecting") return;
setStatus(status);
} }
async function connect() { async function connect() {
+1 -2
View File
@@ -68,11 +68,10 @@ function setStatus(status: UIStatus): void {
} }
orb.addEventListener('click', async () => { orb.addEventListener('click', async () => {
if (currentStatus.state === 'connected') { if (['connected', 'connecting'].includes(currentStatus.state ?? '')) {
await window.vynte.disconnect(); await window.vynte.disconnect();
} else if ( } else if (
![ ![
'connecting',
'disconnecting', 'disconnecting',
'loggingOut', 'loggingOut',
'checking', 'checking',