Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>
label?: string;
autofocus?: boolean;
onlyPeople?: boolean;
+ onlyActive?: boolean;
disabled?: boolean;
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
const filterUsers = new FilterBuilder()
.addILike('any', value)
+ .addEqual('is_active', this.props.onlyActive || undefined)
.addNotIn('uuid', this.props.excludedParticipants)
.getFilters();
const userItems: ListResults<any> = await userService.list({ filters: filterUsers, limit, count: "none" });
const UserSelect = (props) =>
<ParticipantSelect
onlyPeople
+ onlyActive
label='Search for user to grant login permission'
items={props.input.value ? [props.input.value] : []}
excludedParticipants={props.excludedParticipants}
const ReadOnlyUserSelect = (props) =>
<ParticipantSelect
onlyPeople
+ onlyActive
label='User'
items={props.input.value ? [props.input.value] : []}
disabled={true} />;