Skip to content

Commit

Permalink
Merge pull request #1052 from AI4Bharat/ssi
Browse files Browse the repository at this point in the history
Ssi
  • Loading branch information
ishvindersethi22 authored Jun 21, 2024
2 parents 0113caf + 6289e08 commit 3289c7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/ui/pages/component/Tabs/AdvancedOperation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ const AdvancedOperation = (props) => {
}}
onClick={handleOpenExportProjectDialog}
label="Export Project into Dataset"
disabled={userRole.WorkspaceManager === loggedInUserData?.role ? true : false}
disabled={userRole.WorkspaceManager === loggedInUserData?.role || userRole.OrganizationOwner === loggedInUserData?.role ? true : false}

/>
) : (
Expand All @@ -583,7 +583,7 @@ const AdvancedOperation = (props) => {
}}
onClick={handleExportProject}
label="Export Project into Dataset"
disabled={userRole.WorkspaceManager === loggedInUserData?.role ? true : false}
disabled={userRole.WorkspaceManager === loggedInUserData?.role || userRole.OrganizationOwner === loggedInUserData?.role ? true : false}

/>
)}
Expand Down Expand Up @@ -659,7 +659,8 @@ const AdvancedOperation = (props) => {
value={taskReviews}
label="Task Reviews"
onChange={handleReviewToggle}
// getOptionDisabled={(option) => option.disabled}
disabled ={userRole.WorkspaceManager === loggedInUserData?.role || userRole.OrganizationOwner === loggedInUserData?.role ?true:false}
// getOptionDisabled={(option) => option.disabled}
>
{projectStage.map((type, index) => (
<MenuItem value={type.value} key={index} disabled={type.disabled} >
Expand Down
2 changes: 1 addition & 1 deletion src/ui/pages/component/Tabs/DatasetProjectsTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export default function DatasetProjectsTable({ datasetId }) {
>
<CustomButton sx={{ borderRadius: 2 }} label="View" />
</Link>
{userRole.Admin === loggedInUserData?.role || userRole.OrganizationOwner === loggedInUserData?.role ?<CustomButton sx={{ borderRadius: 2, height: 37 }} onClick={() => getExportProjectButton(project)} label="Export" />:null} <CustomButton sx={{ borderRadius: 2 }} onClick={() => getPullNewDataAPI(project)} label="Pull New Data Items" />
{userRole.Admin === loggedInUserData?.role ?<CustomButton sx={{ borderRadius: 2, height: 37 }} onClick={() => getExportProjectButton(project)} label="Export" />:null} <CustomButton sx={{ borderRadius: 2 }} onClick={() => getPullNewDataAPI(project)} label="Pull New Data Items" />
</Stack>
),
})):[]
Expand Down

0 comments on commit 3289c7e

Please sign in to comment.