mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-05 16:37:09 +00:00
fix(control): ping response was wrong
This commit is contained in:
@@ -74,8 +74,8 @@
|
||||
if (existing_display_id) {
|
||||
display = await edit_display_data(existing_display_id, ip, mac, name);
|
||||
} else {
|
||||
const status = await ping_ip(text_inputs_valid.ip.value);
|
||||
display = await add_display(ip, mac, name, status);
|
||||
const resp = await ping_ip(text_inputs_valid.ip.value);
|
||||
display = await add_display(ip, mac, name, resp.status);
|
||||
}
|
||||
if (display) {
|
||||
await update_display_status(display);
|
||||
@@ -282,11 +282,11 @@
|
||||
className="px-4 gap-2"
|
||||
bg="bg-stone-750"
|
||||
click_function={async () => {
|
||||
const status = await ping_ip(text_inputs_valid.ip.value);
|
||||
const resp = await ping_ip(text_inputs_valid.ip.value);
|
||||
notifications.push(
|
||||
'info',
|
||||
`Ping '${text_inputs_valid.ip.value}'`,
|
||||
`Aktueller Zustand: ${display_status_to_info(status)}`
|
||||
`Aktueller Zustand: ${display_status_to_info(resp.status)}`
|
||||
);
|
||||
}}><Radio /> Ping</Button
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user