19049: Only show active users in add login participant select
[arvados-workbench2.git] / src / views-components / virtual-machines-dialog / add-login-dialog.tsx
index 93fe84858248e5b22d0dc255571064f82624e7ad..1654452bf493b656b031c648fa1faf96a1275e1a 100644 (file)
@@ -55,6 +55,7 @@ const ParticipantField = Field as new () => GenericField<UserFieldProps>;
 const UserSelect = (props) =>
     <ParticipantSelect
         onlyPeople
+        onlyActive
         label='Search for user to grant login permission'
         items={props.input.value ? [props.input.value] : []}
         excludedParticipants={props.excludedParticipants}
@@ -64,6 +65,7 @@ const UserSelect = (props) =>
 const ReadOnlyUserSelect = (props) =>
         <ParticipantSelect
             onlyPeople
+            onlyActive
             label='User'
             items={props.input.value ? [props.input.value] : []}
             disabled={true} />;