Archived
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
79a161d303 | ||
|
|
24553a38e8 | ||
|
|
66cc11d43d | ||
|
|
00ab8ef053 |
@@ -1,4 +1,5 @@
|
|||||||
resources/netbird*
|
resources/netbird*
|
||||||
|
resources/*.dll
|
||||||
|
|
||||||
# Logs
|
# Logs
|
||||||
logs
|
logs
|
||||||
|
|||||||
+1
-1
@@ -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
@@ -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
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user