fix: adaptive empty state, escaped button ampersand, no tenant preselection for APs

- Empty states hide icon and text when space is short instead of being
  squeezed; title and button always stay readable
- "Standorte & Mandanten" button no longer shows a mnemonic underscore
- The tenant on the access point page is always chosen deliberately

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-11-02 13:18:21 +01:00
1 parent ba50527ee5
commit b402591cdf
2 files changed
+19 -12

No files matched your search

+3 -2
View File
@@ -144,7 +144,7 @@ class AccessPointsPage(Page):
self.body.addWidget(source)
result = Card("Abgleich")
self.sites_button = result.add_action(button("Standorte & Mandanten …", "globe", on_click=self.map_sites))
self.sites_button = result.add_action(button("Standorte && Mandanten …", "globe", on_click=self.map_sites))
self.refresh_button = result.add_action(button("Neu abgleichen", "refresh", on_click=self.compare))
filters = QHBoxLayout()
self.search = SearchField("Name, S/N, MAC, IP, Standort …")
@@ -269,7 +269,8 @@ class AccessPointsPage(Page):
def done(result):
self.tenants, roles = result
settings = self._settings()
self.tenant.set_items(self.tenants, settings.get("tenant_id"))
# The tenant is always chosen deliberately – never preselected.
self.tenant.set_items(self.tenants)
role_id = settings.get("role_id") or next(
(role_id for name, role_id in roles if name.casefold() in ROLE_HINTS
or "access point" in name.casefold()), None)