Adding references for operator and console links in license page (#675)

This commit is contained in:
Lenin Alevski
2021-03-30 17:01:56 -07:00
committed by GitHub
parent 14fe7c1269
commit ce473b9286
2 changed files with 31 additions and 4 deletions

View File

@@ -526,7 +526,9 @@ const License = ({ classes, operatorMode }: ILicenseProps) => {
className={classes.button}
target="_blank"
rel="noopener noreferrer"
href="https://subnet.min.io/support/?ref=op"
href={`https://subnet.min.io/support/?ref=${
operatorMode ? "op" : "con"
}`}
>
Login to SUBNET
</Button>
@@ -572,7 +574,9 @@ const License = ({ classes, operatorMode }: ILicenseProps) => {
</Typography>
<br />
<a
href="https://min.io/compliance?ref=op"
href={`https://min.io/compliance?ref=${
operatorMode ? "op" : "con"
}`}
className={classes.openSourcePolicy}
target="_blank"
rel="nofollow noopener noreferrer"
@@ -582,7 +586,9 @@ const License = ({ classes, operatorMode }: ILicenseProps) => {
<br />
<br />
<a
href="https://min.io/logo?ref=op"
href={`https://min.io/logo?ref=${
operatorMode ? "op" : "con"
}`}
className={classes.openSourcePolicy}
target="_blank"
rel="nofollow noopener noreferrer"
@@ -796,7 +802,12 @@ const License = ({ classes, operatorMode }: ILicenseProps) => {
}
onClick={(e) => {
e.preventDefault();
window.open(button.link, "_blank");
window.open(
`${button.link}/?ref=${
operatorMode ? "op" : "con"
}`,
"_blank"
);
}}
>
{currentPlanID !== index && index > 0

View File

@@ -46,6 +46,7 @@ import {
UsersIcon,
WarpIcon,
} from "../../../icons";
import LibraryBooksIcon from "@material-ui/icons/LibraryBooks";
import { clearSession } from "../../../common/utils";
import LicenseIcon from "../../../icons/LicenseIcon";
import LogoutIcon from "../../../icons/LogoutIcon";
@@ -444,6 +445,21 @@ const Menu = ({ userLoggedIn, classes, pages, operatorMode }: IMenuProps) => {
return null;
}
})}
<ListItem
button
onClick={(e) => {
e.preventDefault();
window.open(
`https://docs.min.io/?ref=${operatorMode ? "op" : "con"}`,
"_blank"
);
}}
>
<ListItemIcon>
<LibraryBooksIcon />
</ListItemIcon>
<ListItemText primary="Documentation" />
</ListItem>
<Divider />
</Collapse>
</React.Fragment>