Skip to content

Commit

Permalink
Merge pull request #791 from AI4Bharat/dev2-s
Browse files Browse the repository at this point in the history
Added users those who have accepted invite to project
  • Loading branch information
aparna-aa authored Aug 11, 2024
2 parents 9a8d7ef + 4834ec1 commit b192b70
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/common/AddProjectMembers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ const AddProjectMembers = ({
handleSelectField,
managerNames,
}) => {
const acceptedManagers = managerNames.filter((manager) => manager.has_accepted_invite==true);

const filterOptions = (options, state) => {
const newOptions = options.filter((user) => {
const { first_name, last_name, email } = user;
Expand Down Expand Up @@ -72,7 +74,7 @@ const AddProjectMembers = ({
<Autocomplete
multiple
id="add-project-member"
options={managerNames}
options={acceptedManagers}
value={selectFieldValue}
onChange={(_event, newValue) => {
handleSelectField(newValue);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ const SettingsButtonComponent = ({
}, [apiStatus]);

const getDisbled = (flag) => {

if (!transcriptPayload?.payload?.payload?.length) {
return true;
}
Expand All @@ -115,10 +116,12 @@ const SettingsButtonComponent = ({
transcriptPayload?.source_type !== "MACHINE_GENERATED"
) {
if (durationError?.some((item) => item === true)) {

return true;
}

if (flag && completedCount !== totalSentences) {

return true;
}
}
Expand All @@ -128,6 +131,7 @@ const SettingsButtonComponent = ({
transcriptPayload?.source_type === "MACHINE_GENERATED"
) {
if (!transcriptPayload?.payload?.payload.length) {

return true;
}
}
Expand Down

0 comments on commit b192b70

Please sign in to comment.