Compare commits
2 commits
4c172e9c8a
...
09d53b02da
| Author | SHA1 | Date | |
|---|---|---|---|
| 09d53b02da | |||
| f20837ada9 |
1 changed files with 2 additions and 0 deletions
|
|
@ -114,12 +114,14 @@ PluginComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleTailscale() {
|
function toggleTailscale() {
|
||||||
|
if (toggleProcess.running) return
|
||||||
root._pendingToggleAction = root.isConnected ? "disconnect" : "connect"
|
root._pendingToggleAction = root.isConnected ? "disconnect" : "connect"
|
||||||
toggleProcess.command = TailscaleLib.buildToggleCommand(root.isConnected)
|
toggleProcess.command = TailscaleLib.buildToggleCommand(root.isConnected)
|
||||||
toggleProcess.running = true
|
toggleProcess.running = true
|
||||||
}
|
}
|
||||||
|
|
||||||
function setExitNode(hostname) {
|
function setExitNode(hostname) {
|
||||||
|
if (exitNodeProcess.running) return
|
||||||
exitNodeProcess.command = TailscaleLib.makeExitNodeCommand(hostname)
|
exitNodeProcess.command = TailscaleLib.makeExitNodeCommand(hostname)
|
||||||
exitNodeProcess.running = true
|
exitNodeProcess.running = true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue