{{ element.keyMap.label }} @switch (element.keyMap.key) { @case ("states") { @for (state of element.value; track state; let idx = $index) { {{ tableUtilsService.getDisplayTextForState(state) }} } } @case ("realms") { @if (element.isEditing()) { Select Realms @for (option of realmService.realmOptions(); track option) { @if (option === userRealm()) { {{ option }} } @else { {{ option }} } } } @else {
@for (realm of element.value; track realm; let idx = $index) { • {{ realm }} }
} } @case ("description") { @if (element.isEditing()) { } @else {
{{ element.value }}
} } @default { {{ element.value }} } }
@if (isEditableElement(element.keyMap.key)) { }
{{ element.keyMap.label }} @switch (element.keyMap.key) { @case ("user_name") { @if (isEditingUser() && userService.selectedUserRealm() !== "") { Enter User @for (option of userService.selectionFilteredUsernames(); track option) { {{ option }} } } @else { {{ element.value }} } } @case ("user_realm") { @if (isEditingUser()) { Select Realm of User @for (option of realmService.realmOptions(); track option) { {{ option }} } } @else { {{ element.value }} } } @default { {{ element.value }} } } @if (authService.actionAllowed("container_unassign_user")) { @if (element.keyMap.key === "user_name" && !(isAnyEditing() && !isEditingUser())) { @if (element.value) {
} @else { } } }