- |
-
-
- |
+ @if (showUserManagementControls()) {
+
+
+
+ |
+ }
{{ "name" | i18n }} |
{{ (organization.useGroups ? "groups" : "collections") | i18n }} |
{{ "role" | i18n }} |
{{ "policies" | i18n }} |
-
-
-
-
-
+ |
+ @if (showUserManagementControls()) {
+ |
+
+
+
+
+ |
+ }
-
-
-
-
- {{ "reinviteSelected" | i18n }}
-
-
-
-
- {{ "confirmSelected" | i18n }}
-
-
-
-
- {{ "restoreAccess" | i18n }}
-
-
-
- {{ "revokeAccess" | i18n }}
-
-
-
-
- {{ "remove" | i18n }}
-
-
-
-
-
- {{ "delete" | i18n }}
-
-
+ }
+ @if (bulkActions.showBulkReinviteUsers) {
+
+
+ {{ "reinviteSelected" | i18n }}
+
+ }
+ @if (bulkActions.showBulkConfirmUsers) {
+
+
+
+ {{ "confirmSelected" | i18n }}
+
+
+ }
+ @if (bulkActions.showBulkRestoreUsers) {
+
+
+ {{ "restoreAccess" | i18n }}
+
+ }
+ @if (bulkActions.showBulkRevokeUsers) {
+
+
+ {{ "revokeAccess" | i18n }}
+
+ }
+ @if (bulkActions.showBulkRemoveUsers) {
+
+
+
+ {{ "remove" | i18n }}
+
+
+ }
+ @if (bulkActions.showBulkDeleteUsers) {
+
+
+
+ {{ "delete" | i18n }}
+
+
+ }
@@ -200,10 +221,10 @@
alignContent="middle"
[ngClass]="rowHeightClass"
>
-
-
- |
-
+ @if (showUserManagementControls()) {
+
+
+ |
{{ u.name ?? u.email }}
-
- {{ "invited" | i18n }}
-
-
- {{ "needsConfirmation" | i18n }}
-
-
- {{ "revoked" | i18n }}
-
-
-
- {{ u.email }}
+ @if (u.status === userStatusType.Invited) {
+
+ {{ "invited" | i18n }}
+
+ }
+ @if (u.status === userStatusType.Accepted) {
+
+ {{ "needsConfirmation" | i18n }}
+
+ }
+ @if (u.status === userStatusType.Revoked) {
+
+ {{ "revoked" | i18n }}
+
+ }
+ @if (u.name) {
+
+ {{ u.email }}
+
+ }
|
-
-
+ } @else {
{{ u.name ?? u.email }}
-
- {{ "invited" | i18n }}
-
-
- {{ "needsConfirmation" | i18n }}
-
-
- {{ "revoked" | i18n }}
-
-
-
- {{ u.email }}
+ @if (u.status === userStatusType.Invited) {
+
+ {{ "invited" | i18n }}
+
+ }
+ @if (u.status === userStatusType.Accepted) {
+
+ {{ "needsConfirmation" | i18n }}
+
+ }
+ @if (u.status === userStatusType.Revoked) {
+
+ {{ "revoked" | i18n }}
+
+ }
+ @if (u.name) {
+
+ {{ u.email }}
+
+ }
|
-
+ }
-
+ @if (showUserManagementControls()) {
|
-
-
+ } @else {
|
-
+ }
-
+ @if (showUserManagementControls()) {
{{ u.type | userType }}
|
-
-
+ } @else {
{{ u.type | userType }}
|
-
+ }
-
+ @if (u.twoFactorEnabled) {
{{ "userUsingTwoStep" | i18n }}
-
+ }
@let resetPasswordPolicyEnabled = resetPasswordPolicyEnabled$ | async;
-
+ @if (showEnrolledStatus(u, organization, resetPasswordPolicyEnabled)) {
{{ "enrolledAccountRecovery" | i18n }}
-
+ }
|
@@ -374,122 +376,131 @@
-
+ @if (showUserManagementControls()) {
+ @if (u.status === userStatusType.Invited) {
+
+
+ {{ "resendInvitation" | i18n }}
+
+ }
+ @if (u.status === userStatusType.Accepted) {
+
+
+ {{ "confirm" | i18n }}
+
+
+ }
+ @if (
+ u.status === userStatusType.Accepted || u.status === userStatusType.Invited
+ ) {
+
+ }
-
- {{ "resendInvitation" | i18n }}
-
-
-
- {{ "confirm" | i18n }}
-
-
-
-
{{ "memberRole" | i18n }}
+ @if (organization.useGroups) {
+
+ {{ "groups" | i18n }}
+
+ }
- {{ "groups" | i18n }}
-
-
{{ "collections" | i18n }}
-
- {{ "eventLogs" | i18n }}
-
-
+ @if (organization.useEvents && u.status === userStatusType.Confirmed) {
+
+
+ {{ "eventLogs" | i18n }}
+
+ }
+ }
-
- {{ "recoverAccount" | i18n }}
-
+ @if (allowResetPassword(u, organization, resetPasswordPolicyEnabled)) {
+
+ {{ "recoverAccount" | i18n }}
+
+ }
-
-
-
- {{ "restoreAccess" | i18n }}
-
-
-
- {{ "revokeAccess" | i18n }}
-
-
-
- {{ "remove" | i18n }}
-
-
-
-
-
- {{ "delete" | i18n }}
-
-
-
+ @if (showUserManagementControls()) {
+ @if (u.status === userStatusType.Revoked) {
+
+
+ {{ "restoreAccess" | i18n }}
+
+ }
+ @if (u.status !== userStatusType.Revoked) {
+
+
+ {{ "revokeAccess" | i18n }}
+
+ }
+ @if (!u.managedByOrganization) {
+
+
+ {{ "remove" | i18n }}
+
+
+ } @else {
+
+
+
+ {{ "delete" | i18n }}
+
+
+ }
+ }
|