Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed pin #1031

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/ui/pages/component/Project/MembersTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -529,12 +529,12 @@ const MembersTable = (props) => {
// console.log(rsp_data);
}}
else if(memberOrReviewer === "superchecker"){
if(pin === "0104"){
// if(pin === "0104"){
handleProjectReviewer(elId);
setConfirmationDialog(false);
}else{
window.alert("Incorrect pin entered");
}
// }else{
// window.alert("Incorrect pin entered");
// }
}
};
return (
Expand Down
16 changes: 8 additions & 8 deletions src/ui/pages/component/Project/TaskTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,14 @@ const TaskTable = (props) => {

const unassignTasks = async () => {
setDeallocateDialog(false);
if (ProjectDetails?.project_type === "AcousticNormalisedTranscriptionEditing") {
setSnackbarInfo({
open: true,
message: 'The task de-allocation has been disabled for your project',
variant: "error",
});
return
}
// if (ProjectDetails?.project_type === "AcousticNormalisedTranscriptionEditing") {
// setSnackbarInfo({
// open: true,
// message: 'The task de-allocation has been disabled for your project',
// variant: "error",
// });
// return
// }
const deallocateObj =
props.type === "annotation"
? new DeallocateTasksAPI(id, selectedFilters.annotation_status)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ export default function DeallocationAnnotatorsAndReviewers() {
const [password, setPassword] = useState("");
const [pin, setPin] = useState("");
const handleConfirm = async () => {
if (userLevel === "annotation" || userLevel === "review") {
const apiObj = new LoginAPI(emailId, password);
// if (userLevel === "annotation" || userLevel === "review") {
const apiObj = new LoginAPI(emailId,password);
const res = await fetch(apiObj.apiEndPoint(), {
method: "POST",
body: JSON.stringify(apiObj.getBody()),
Expand All @@ -256,13 +256,13 @@ export default function DeallocationAnnotatorsAndReviewers() {
window.alert("Invalid credentials, please try again");
console.log(rsp_data);
}
} else if (userLevel === "superChecker") {
if (pin === "9327") {
handleok();
} else {
window.alert("Incorrect pin entered");
}
}
// } else if (userLevel === "superChecker") {
// if (pin === "9327") {
// handleok();
// } else {
// window.alert("Incorrect pin entered");
// }
// }
};

return (
Expand Down Expand Up @@ -632,7 +632,7 @@ export default function DeallocationAnnotatorsAndReviewers() {
<DialogContentText id="alert-dialog-description">
Are you sure want to Deallocate User Tasks ?
</DialogContentText>
{(userLevel === "annotation" || userLevel === "review") && <TextField
<TextField
autoFocus
margin="dense"
id="password"
Expand All @@ -641,8 +641,8 @@ export default function DeallocationAnnotatorsAndReviewers() {
fullWidth
variant="standard"
onChange={(e) => setPassword(e.target.value)}
/>}
{userLevel === "superChecker" && <TextField
/>
{/* {userLevel === "superChecker" && <TextField
autoFocus
margin="dense"
id="pin"
Expand All @@ -651,8 +651,7 @@ export default function DeallocationAnnotatorsAndReviewers() {
fullWidth
variant="standard"
onChange={(e) => setPin(e.target.value)}
/>}

/>} */}
</DialogContent>
<DialogActions>
<Button onClick={handleCloseDialog}
Expand Down