Tidying in TenantDropdown.vue
This commit is contained in:
@@ -14,8 +14,12 @@ const tenantInitials = computed(() => {
|
||||
.join('') || 'M'
|
||||
})
|
||||
|
||||
const activeTenants = computed(() =>
|
||||
auth.tenants.filter((tenant) => tenant.hasActiveLicense)
|
||||
)
|
||||
|
||||
const tenantItems = computed(() => [
|
||||
auth.tenants.map((tenant) => ({
|
||||
activeTenants.value.map((tenant) => ({
|
||||
label: tenant.name,
|
||||
icon: tenant.id === auth.activeTenant ? 'i-heroicons-check' : undefined,
|
||||
disabled: Boolean(tenant.locked),
|
||||
|
||||
Reference in New Issue
Block a user