Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

Commit

Permalink
Merge pull request #130 from Minoli/portal
Browse files Browse the repository at this point in the history
Comment out image,org,version delete option
  • Loading branch information
nadundesilva authored Aug 21, 2019
2 parents 8f825c9 + 92b8e20 commit f269963
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 40 deletions.
32 changes: 16 additions & 16 deletions components/portal/src/components/image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import CellImage from "../../img/CellImage";
import Chip from "@material-ui/core/Chip";
import Constants from "../../utils/constants";
import CustomizedTabs from "../common/CustomizedTabs";
import DeleteOutline from "@material-ui/icons/DeleteOutline";
// Import DeleteOutline from "@material-ui/icons/DeleteOutline";
import Description from "../common/Description";
import Divider from "@material-ui/core/Divider";
import EditOutlined from "@material-ui/icons/EditOutlined";
Expand Down Expand Up @@ -372,21 +372,21 @@ class Image extends React.Component {
}}>
<EditOutlined className={classes.menuIcon}/> Edit
</MenuItem>
{
(imageData.userRole === Constants.Permission.ADMIN)
? (
<React.Fragment>
<Divider/>
<MenuItem onClick={() => {
this.handleDeleteDialogOpen();
this.handleMorePopoverClose();
}}>
<DeleteOutline className={classes.menuIcon}/> Delete
</MenuItem>
</React.Fragment>
)
: null
}
{/* {*/}
{/* (imageData.userRole === Constants.Permission.ADMIN)*/}
{/* ? (*/}
{/* <React.Fragment>*/}
{/* <Divider/>*/}
{/* <MenuItem onClick={() => {*/}
{/* This.handleDeleteDialogOpen();*/}
{/* This.handleMorePopoverClose();*/}
{/* }}>*/}
{/* <DeleteOutline className={classes.menuIcon}/> Delete*/}
{/* </MenuItem>*/}
{/* </React.Fragment>*/}
{/* )*/}
{/* : null*/}
{/* }*/}
</Menu>
</React.Fragment>
)
Expand Down
32 changes: 16 additions & 16 deletions components/portal/src/components/image/version/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import CellImage from "../../../img/CellImage";
import Constants from "../../../utils/constants";
import CustomizedTabs from "../../common/CustomizedTabs";
import DataUtils from "../../../utils/api/dataUtils";
import DeleteOutline from "@material-ui/icons/DeleteOutline";
// Import DeleteOutline from "@material-ui/icons/DeleteOutline";
import DependencyDiagram from "../dependencyDiagram/index";
import Description from "../../common/Description";
import Divider from "@material-ui/core/Divider";
Expand Down Expand Up @@ -382,21 +382,21 @@ class ImageVersion extends React.Component {
}}>
<EditOutlined className={classes.menuIcon}/> Edit
</MenuItem>
{
(versionData.userRole === Constants.Permission.ADMIN)
? (
<React.Fragment>
<Divider/>
<MenuItem onClick={() => {
this.handleDeleteDialogOpen();
this.handleMorePopoverClose();
}}>
<DeleteOutline className={classes.menuIcon}/> Delete
</MenuItem>
</React.Fragment>
)
: null
}
{/* {*/}
{/* (versionData.userRole === Constants.Permission.ADMIN)*/}
{/* ? (*/}
{/* <React.Fragment>*/}
{/* <Divider/>*/}
{/* <MenuItem onClick={() => {*/}
{/* This.handleDeleteDialogOpen();*/}
{/* This.handleMorePopoverClose();*/}
{/* }}>*/}
{/* <DeleteOutline className={classes.menuIcon}/> Delete*/}
{/* </MenuItem>*/}
{/* </React.Fragment>*/}
{/* )*/}
{/* : null*/}
{/* }*/}
</Menu>
</React.Fragment>
)
Expand Down
16 changes: 8 additions & 8 deletions components/portal/src/components/org/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import ArrowBack from "@material-ui/icons/ArrowBack";
import Constants from "../../utils/constants";
import CustomizedTabs from "../common/CustomizedTabs";
import DataUtils from "../../utils/api/dataUtils";
import DeleteOutline from "@material-ui/icons/DeleteOutline";
// Import DeleteOutline from "@material-ui/icons/DeleteOutline";
import Description from "../common/Description";
import Divider from "@material-ui/core/Divider";
import EditOutlined from "@material-ui/icons/EditOutlined";
Expand Down Expand Up @@ -251,13 +251,13 @@ class Org extends React.Component {
}}>
<EditOutlined className={classes.menuIcon}/> Edit
</MenuItem>
<Divider/>
<MenuItem onClick={() => {
this.handleDeleteDialogOpen();
this.handleMorePopoverClose();
}}>
<DeleteOutline className={classes.menuIcon}/> Delete
</MenuItem>
{/* <Divider/>*/}
{/* <MenuItem onClick={() => {*/}
{/* This.handleDeleteDialogOpen();*/}
{/* This.handleMorePopoverClose();*/}
{/* }}>*/}
{/* <DeleteOutline className={classes.menuIcon}/> Delete*/}
{/* </MenuItem>*/}
</Menu>
</React.Fragment>
)
Expand Down

0 comments on commit f269963

Please sign in to comment.