fixed wrong warning with single tenant

This commit is contained in:
2026-03-12 12:22:36 +01:00
parent eb748b2fa4
commit 39a113c5fc
2 changed files with 13 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ $allowUserTheme = allowUserTheme();
<div class="app-topbar-center" aria-hidden="true"></div>
<ul class="app-topbar-right">
<?php if ($canSwitchTenant): ?>
<li class="app-topbar-tenant-slot" data-tooltip="<?php e(t('Tenant')); ?>" data-tooltip-pos="bottom">
<li class="app-topbar-tenant-slot" data-tenant-switcher data-tooltip="<?php e(t('Tenant')); ?>" data-tooltip-pos="bottom">
<details class="dropdown app-topbar-tenant-menu">
<summary class="app-topbar-tenant-chip" aria-label="<?php e(t('Switch tenant')); ?>" title="<?php e($tenantLabel); ?>">
<span class="app-topbar-tenant-name"><?php e($tenantLabel); ?></span>