Skip to content

Commit

Permalink
Merge pull request #909 from AI4Bharat/master
Browse files Browse the repository at this point in the history
Update develop to master
  • Loading branch information
ishvindersethi22 authored Feb 8, 2024
2 parents 001a752 + f86dff0 commit b41159c
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 20 deletions.
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.

0 comments on commit b41159c

Please sign in to comment.