ignore pages without capabilites

This commit is contained in:
Adam Velebil 2024-04-16 08:42:26 +02:00
parent bf6c050307
commit fc0c71d14e
No known key found for this signature in database
GPG Key ID: C9B1E4A3CBBD2E10

View File

@ -547,9 +547,11 @@ class _AppPageState extends ConsumerState<AppPage> {
)),
if (hasManage &&
!hasDetailsOrKeyActions &&
widget.capabilities != null &&
widget.capabilities?.first != Capability.u2f)
// Add a placeholder for the Manage/Details column, but not for
// the "Security Key" because it does not have any actions/details.
// Add a placeholder for the Manage/Details column. Exceptions are:
// - the "Security Key" because it does not have any actions/details.
// - pages without Capabilities
const SizedBox(width: 336), // simulate column
if (hasManage && hasDetailsOrKeyActions)
_VisibilityListener(