diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Environments/Environments.jsx b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Environments/Environments.jsx
index 1923843bd28..96879306e6b 100644
--- a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Environments/Environments.jsx
+++ b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Environments/Environments.jsx
@@ -61,6 +61,7 @@ import DialogContent from '@material-ui/core/DialogContent';
import DialogTitle from '@material-ui/core/DialogTitle';
import CardHeader from '@material-ui/core/CardHeader';
import Checkbox from '@material-ui/core/Checkbox';
+import InfoIcon from '@material-ui/icons/Info';
import RadioButtonUncheckedIcon from '@material-ui/icons/RadioButtonUnchecked';
import CheckCircleIcon from '@material-ui/icons/CheckCircle';
import API from 'AppData/api';
@@ -77,6 +78,11 @@ const useStyles = makeStyles((theme) => ({
display: 'flex',
flexWrap: 'wrap',
},
+ infoIcon: {
+ fontSize: 'medium',
+ marginLeft: theme.spacing(1),
+ verticalAlign: 'middle',
+ },
saveButton: {
marginTop: theme.spacing(3),
},
@@ -143,6 +149,8 @@ const useStyles = makeStyles((theme) => ({
marginLeft: 6.5,
},
textShape2: {
+ display: 'flex',
+ alignItems: 'center',
marginTop: 8,
marginLeft: 115,
height: '18px',
@@ -1192,6 +1200,61 @@ export default function Environments() {
);
return item6;
}
+ let infoIconItem;
+ /**
+ * Returns modified infoIconItem
+ * @param {*} revDescription The description of the revision
+ * @returns {Object} Returns the infoIconItem
+ */
+ function ReturnInfoIconItem({ revDescription}) {
+ const [anchorEl, setAnchorEl] = useState(null);
+
+ const handlePopoverOpen = (event) => {
+ setAnchorEl(event.currentTarget);
+ };
+
+ const handlePopoverClose = () => {
+ setAnchorEl(null);
+ };
+
+ const openPopover = Boolean(anchorEl);
+ infoIconItem = (
+ <>
+
+
+
+
+ {revDescription}
+
+
+
+ >
+
+ );
+ return infoIconItem;
+ }
const items = [];
if (!api.isRevision) {
@@ -1212,6 +1275,13 @@ export default function Environments() {
{item1}
{allRevisions[revision].displayName}
+ {allRevisions[revision].description && <>
+
+ {infoIconItem}
+ >
+ }
{allRevisions[revision].displayName}
+ {allRevisions[revision].description && <>
+
+ {infoIconItem}
+ >
+ }