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

Update develop to master #909

Merged
merged 11 commits into from
Feb 8, 2024
4 changes: 2 additions & 2 deletions src/redux/actions/api/ProjectDetails/DownloadCSVProject.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
import constants from "../../../constants";

export default class DownloadProjectCsvAPI extends API {
constructor(projectId,taskStatus, downloadMetadataToggle=false,timeout = 2000) {
constructor(projectId,taskStatus,timeout = 2000) {
super("POST", timeout, false);
this.projectBody={}//object with key-value pair
this.type = constants.DOWNLOAD_PROJECT_CSV;
this.endpoint = `${super.apiEndPointAuto()}${ENDPOINTS.getProjects}${projectId}/download/?export_type=CSV&task_status=${taskStatus}&include_input_data_metadata_json=${downloadMetadataToggle}`;
this.endpoint = `${super.apiEndPointAuto()}${ENDPOINTS.getProjects}${projectId}/download/?export_type=CSV&task_status=${taskStatus}`;
}

processResponse(res) {
Expand Down
4 changes: 2 additions & 2 deletions src/redux/actions/api/ProjectDetails/DownloadJSONProject.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
import constants from "../../../constants";

export default class DownloadProjectJSONAPI extends API {
constructor(projectId, taskStatus ,downloadMetadataToggle=false, timeout = 2000) {
constructor(projectId, taskStatus , timeout = 2000) {
super("POST", timeout, false);
this.projectBody={}//object with key-value pair
this.type = constants.DOWNLOAD_PROJECT_JSON;
this.endpoint = `${super.apiEndPointAuto()}${ENDPOINTS.getProjects}${projectId}/download/?export_type=JSON&task_status=${taskStatus}&include_input_data_metadata_json=${downloadMetadataToggle}`;
this.endpoint = `${super.apiEndPointAuto()}${ENDPOINTS.getProjects}${projectId}/download/?export_type=JSON&task_status=${taskStatus}`;
}

processResponse(res) {
Expand Down
4 changes: 2 additions & 2 deletions src/redux/actions/api/ProjectDetails/DownloadTSVProject.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
import constants from "../../../constants";

export default class DownloadProjectTsvAPI extends API {
constructor(projectId,taskStatus,downloadMetadataToggle=false, timeout = 2000) {
constructor(projectId,taskStatus, timeout = 2000) {
super("POST", timeout, false);
this.type = constants.DOWNLOAD_PROJECT_TSV;
this.projectBody={}//object with key-value pair
this.endpoint = `${super.apiEndPointAuto()}${ENDPOINTS.getProjects}${projectId}/download/?export_type=TSV&task_status=${taskStatus}&include_input_data_metadata_json=${downloadMetadataToggle}`;
this.endpoint = `${super.apiEndPointAuto()}${ENDPOINTS.getProjects}${projectId}/download/?export_type=TSV&task_status=${taskStatus}`;
}

processResponse(res) {
Expand Down
4 changes: 2 additions & 2 deletions src/ui/pages/component/Tabs/AdvancedOperation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ const AdvancedOperation = (props) => {
sx={{ mt: 1 }}
>
{/* <div className={classes.divider} ></div> */}
<Grid item xs={12} sm={12} md={12} lg={12} xl={12}>
{/* <Grid item xs={12} sm={12} md={12} lg={12} xl={12}>
<FormControlLabel
control={<Switch color="primary" />}
label="Download Metadata"
Expand All @@ -709,7 +709,7 @@ const AdvancedOperation = (props) => {
disabled ={userRole.WorkspaceManager === loggedInUserData?.role?true:false}

/>
</Grid>
</Grid> */}
</Grid>

<Dialog
Expand Down
11 changes: 0 additions & 11 deletions src/ui/pages/component/common/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -446,17 +446,6 @@ console.log(unseenNotifications,'uuu');
Projects
</NavLink>
</Typography>
<Typography variant="body1">
<NavLink
to="/datasets"
className={({ isActive }) =>
isActive ? classes.highlightedMenu : classes.headerMenu
}
activeClassName={classes.highlightedMenu}
>
Datasets
</NavLink>
</Typography>
<Typography variant="body1">
<NavLink
to="/analytics"
Expand Down
9 changes: 9 additions & 0 deletions src/ui/pages/container/CL-Transcription/AudioPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,20 @@ const AudioPanel = memo( ({
// }, [$video]);

//console.log(TaskDetails?.data?.audio_url,"TaskDetailsTaskDetailsTaskDetails")

useEffect(() => {
const audio = document.getElementById('audio-panel');
audio.oncontextmenu = function (e) {
e.preventDefault();
};
}, [])

return (
<Grid style={{ padding: "0px 20px 0px 20px" }}>

{/* <div className={classes.videoPlayerParent} style={{ display: "flex" }}> */}
<audio
id ="audio-panel"
controls
controlsList="nodownload"
src={TaskDetails?.data?.audio_url}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/TabsSuggestionData/TabsSuggestionData.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading