gurucomputing / headscale-ui

A web frontend for the headscale Tailscale-compatible coordination server
BSD 3-Clause "New" or "Revised" License
1.75k stars 121 forks source link

Can not get device router #167

Closed plusls closed 3 weeks ago

plusls commented 4 weeks ago

Supporting Details Provide the following:

Describe the bug

Default, headscaleAPIMachineOrNode is null, so it use machine as the router query path.

https://github.com/gurucomputing/headscale-ui/blob/64323e49c52a034d57867383549a51c65dfeddd6/src/lib/devices/DeviceCard/DeviceRoutesAPI.svelte#L9

https://github.com/gurucomputing/headscale-ui/blob/64323e49c52a034d57867383549a51c65dfeddd6/src/lib/common/apiFunctions.svelte#L159

MadWalnut commented 3 weeks ago

machine needs to be updated to node, see #120

routerino commented 3 weeks ago

The machine or node check was removed, but clearly some references to machine got missed. Getting taken care of now