@let organization = this.organization(); @let dataSource = this.dataSource(); @let bulkActions = bulkMenuOptions$ | async; @let isProcessing = this.isProcessing(); @let isSingleInvite = isSingleInvite$ | async; @if (organization && dataSource) { @if (!phoneLayout()) { } @if (showUserManagementControls() && !phoneLayout()) { } @if (phoneLayout()) { } @if (showUserManagementControls() && phoneLayout()) { } @if (u.twoFactorEnabled) { {{ "userUsingTwoStep" | i18n }} } @if (recovery) { {{ "enrolledAccountRecovery" | i18n }} }
@if (showUserManagementControls()) {
{{ "vtToConfirm" | i18n }} {{ "all" | i18n }} @if (dataSource.stagedUserCount > 0) { {{ "staged" | i18n }} } {{ "invited" | i18n }} {{ "revoked" | i18n }}
@if (confirmablePeopleShown) { }
@if (confirmablePeopleShown) {

{{ "vtConfirmMembersHint" | i18n }}

} }
@if (!firstLoaded() || !organization || !dataSource) { {{ "loading" | i18n }} } @else { @if (!dataSource.filteredData?.length) {

{{ "noMembersInList" | i18n }}

} @if (dataSource.filteredData?.length) { @if (showUserManagementControls()) { } {{ "name" | i18n }} @if (accessColumnShown(organization.useGroups)) { {{ (organization.useGroups ? "groups" : "collections") | i18n }} } {{ "role" | i18n }} @if (showUserManagementControls()) {
@if (!phoneLayout()) { } @if (phoneLayout() || bulkActions?.hasSelection || canUseSecretsManager()) { }
} @if (phoneLayout()) { @if (bulkActions?.hasSelection || canUseSecretsManager()) { } } @if (canUseSecretsManager()) { } @if (bulkActions.showBulkReinviteUsers) { } @if (bulkActions.showBulkConfirmUsers) { } @if (bulkActions.showBulkRestoreUsers) { } @if (bulkActions.showBulkRevokeUsers) { } @if (bulkActions.showBulkRemoveUsers) { } @if (bulkActions.showBulkDeleteUsers) { }
@let resetPasswordPolicyEnabled = resetPasswordPolicyEnabled$ | async; @let securityContext = { user: u, recovery: showEnrolledStatus(u, organization, resetPasswordPolicyEnabled), }; @if (showUserManagementControls()) {
@if (u.status === userStatusType.Staged) { {{ "staged" | i18n }} } @if (u.status === userStatusType.Invited) { {{ "invited" | i18n }} } @if (u.status === userStatusType.Revoked) { {{ "revoked" | i18n }} }
@if (u.name) { @let at = u.email.lastIndexOf("@");
@if (at > 0) { {{ u.email.slice(0, at) }}{{ u.email.slice(at) }} } @else { {{ u.email }} }
}
{{ +u.type === 3 || u.type === userType.Custom ? "Manager (legacy)" : (u.type | userType) }} @if (u.canConfirm) { }
} @else {
{{ u.name ?? u.email }} @if (u.status === userStatusType.Staged) { {{ "staged" | i18n }} } @if (u.status === userStatusType.Invited) { {{ "invited" | i18n }} } @if (u.status === userStatusType.Accepted) { {{ "needsConfirmation" | i18n }} } @if (u.status === userStatusType.Revoked) { {{ "revoked" | i18n }} }
@if (u.name) { @let at = u.email.lastIndexOf("@");
@if (at > 0) { {{ u.email.slice(0, at) }}{{ u.email.slice(at) }} } @else { {{ u.email }} }
}
{{ +u.type === 3 || u.type === userType.Custom ? "Manager (legacy)" : (u.type | userType) }}
} @if (accessColumnShown(organization.useGroups) && showUserManagementControls()) { } @else if (accessColumnShown(organization.useGroups)) { } @if (showUserManagementControls()) { {{ +u.type === 3 || u.type === userType.Custom ? "Manager (legacy)" : (u.type | userType) }} } @else { {{ +u.type === 3 || u.type === userType.Custom ? "Manager (legacy)" : (u.type | userType) }} }
@if (showUserManagementControls() && u.canConfirm) { }
@if (showUserManagementControls()) { @if (u.canReinvite) { } @if (u.canConfirm) { } @if (u.canConfirm || u.canReinvite) { } @if (u.canManageMember) { @if (organization.useGroups) { } } @if (organization.useEvents && u.status === userStatusType.Confirmed) { } } @if (allowResetPassword(u, organization, resetPasswordPolicyEnabled)) { } @if (showUserManagementControls()) { @if (u.canRestore) { } @if (u.canRevoke) { } @if (u.canRemove) { } @else { } }
} } }