leiweibau / Pi.Alert

Scan the devices connected to your WIFI / LAN and alert you the connection of unknown devices. It also warns if a "always connected" device disconnects. In addition, it is possible to check web services for availability. For this purpose HTTP status codes and the response time of the service are evaluated.
https://leiweibau.net
GNU General Public License v3.0
334 stars 25 forks source link

[Bug] Device's selected Uplink Target shows a number, not the device name. #286

Closed ajtatum closed 3 months ago

ajtatum commented 3 months ago

Is there an existing issue for this?

Current Behavior

When editing a device, when you click on the dropdown for "Uplink Target", it shows a list of possible devices by name. However, once an "Uplink Target" is selected, it shows just a number. Upon saving and viewing the device again, it still shows a number, which makes it difficult to tell what the "Uplink Target" is.

Here are some screenshots: thorium_S9cVIhSll9

thorium_1qaNU4A3bS

Environment

OS: Debian 12 Installation Method: Used the Proxmox script by tteck. Which creates an LXC by running the following command:

bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/pialert.sh)"

Anything else?

I may not have noticed it before, but I thought at one point the Edit Device screen showed the Uplink Target's name.

leiweibau commented 3 months ago

This is not a bug, but exactly as intended. The number is saved, not the name. Maybe I'll change that at some point. Or maybe I show the corresponding number in the drop-down list next to the name.

ajtatum commented 3 months ago

That makes sense. It would be much easier to verify that Uplink Target if the matching number could be shown in the drop-down menu. I would greatly appreciate it!

Edit: I just saw the commit you referenced! You're awesome! Thank you!