<div id="tenants-menu-items">
    <a
        (click)="!stored.isCurrent && switchTenant(stored.tenantId)"
        *ngFor="let stored of storedTenants; trackBy: trackBy"
        [class.disabled]="stored.isCurrent"
        [class.reverse-icon]="stored.isCurrent"
        [id]="stored.tenantId"
        [iqserStopPropagation]="stored.isCurrent"
        class="little-padding"
        mat-menu-item
    >
        {{ stored.tenantId }}
        <mat-icon *ngIf="stored.isCurrent" [svgIcon]="'iqser:check'"></mat-icon>
    </a>

    <mat-divider class="pb-3 pt-3"></mat-divider>

    <a (click)="switchTenant()" mat-menu-item>
        <span translate="top-bar.navigation-items.my-account.children.join-another-tenant"> </span>
    </a>
</div>
