From e237cc2c059f08f62c025c91c8699788b3fbceb7 Mon Sep 17 00:00:00 2001 From: cproudlock Date: Wed, 29 Jul 2026 07:29:34 -0400 Subject: [PATCH] dashboarddefaults: pick a kiosk from a dropdown (auto-fill FQDN) + Location wording Adds GET /api/computers/display-kiosks - the displays that reported in (Kiosk type), each with its derived FQDN (F.). The Dashboard Defaults form gets a kiosk dropdown that fills the FQDN so admins pick a display instead of typing an IP; IP stays an optional manual field. Table shows FQDN or IP. 'Business Unit' label -> 'Location' on this page + the settings nav. --- frontend/src/api/index.js | 3 ++ .../views/settings/DashboardDefaultsList.vue | 38 +++++++++++----- frontend/src/views/settings/settingsNav.js | 2 +- plugins/computers/api/routes.py | 36 +++++++++++++++ tests/test_core/test_display_kiosks.py | 45 +++++++++++++++++++ 5 files changed, 113 insertions(+), 11 deletions(-) create mode 100644 tests/test_core/test_display_kiosks.py diff --git a/frontend/src/api/index.js b/frontend/src/api/index.js index ac1fcee..9888472 100644 --- a/frontend/src/api/index.js +++ b/frontend/src/api/index.js @@ -120,6 +120,9 @@ export const computersApi = { list(params = {}) { return api.get('/computers', { params }) }, + displayKiosks() { + return api.get('/computers/display-kiosks') + }, get(id) { return api.get(`/computers/${id}`) }, diff --git a/frontend/src/views/settings/DashboardDefaultsList.vue b/frontend/src/views/settings/DashboardDefaultsList.vue index 04fd157..48a4a9e 100644 --- a/frontend/src/views/settings/DashboardDefaultsList.vue +++ b/frontend/src/views/settings/DashboardDefaultsList.vue @@ -19,16 +19,16 @@ - + - + - + @@ -57,9 +57,19 @@
IP AddressKiosk (FQDN / IP) DisplayBusiness UnitLocation Description Actions
{{ d.ipaddress }}{{ d.fqdn || d.ipaddress }} {{ roleLabel(d.displayrole) }} {{ d.businessunit || '-' }} {{ d.description || '-' }}