Adding references for operator and console links in license page (#675)
This commit is contained in:
@@ -526,7 +526,9 @@ const License = ({ classes, operatorMode }: ILicenseProps) => {
|
|||||||
className={classes.button}
|
className={classes.button}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
href="https://subnet.min.io/support/?ref=op"
|
href={`https://subnet.min.io/support/?ref=${
|
||||||
|
operatorMode ? "op" : "con"
|
||||||
|
}`}
|
||||||
>
|
>
|
||||||
Login to SUBNET
|
Login to SUBNET
|
||||||
</Button>
|
</Button>
|
||||||
@@ -572,7 +574,9 @@ const License = ({ classes, operatorMode }: ILicenseProps) => {
|
|||||||
</Typography>
|
</Typography>
|
||||||
<br />
|
<br />
|
||||||
<a
|
<a
|
||||||
href="https://min.io/compliance?ref=op"
|
href={`https://min.io/compliance?ref=${
|
||||||
|
operatorMode ? "op" : "con"
|
||||||
|
}`}
|
||||||
className={classes.openSourcePolicy}
|
className={classes.openSourcePolicy}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="nofollow noopener noreferrer"
|
rel="nofollow noopener noreferrer"
|
||||||
@@ -582,7 +586,9 @@ const License = ({ classes, operatorMode }: ILicenseProps) => {
|
|||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<a
|
<a
|
||||||
href="https://min.io/logo?ref=op"
|
href={`https://min.io/logo?ref=${
|
||||||
|
operatorMode ? "op" : "con"
|
||||||
|
}`}
|
||||||
className={classes.openSourcePolicy}
|
className={classes.openSourcePolicy}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="nofollow noopener noreferrer"
|
rel="nofollow noopener noreferrer"
|
||||||
@@ -796,7 +802,12 @@ const License = ({ classes, operatorMode }: ILicenseProps) => {
|
|||||||
}
|
}
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
window.open(button.link, "_blank");
|
window.open(
|
||||||
|
`${button.link}/?ref=${
|
||||||
|
operatorMode ? "op" : "con"
|
||||||
|
}`,
|
||||||
|
"_blank"
|
||||||
|
);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{currentPlanID !== index && index > 0
|
{currentPlanID !== index && index > 0
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ import {
|
|||||||
UsersIcon,
|
UsersIcon,
|
||||||
WarpIcon,
|
WarpIcon,
|
||||||
} from "../../../icons";
|
} from "../../../icons";
|
||||||
|
import LibraryBooksIcon from "@material-ui/icons/LibraryBooks";
|
||||||
import { clearSession } from "../../../common/utils";
|
import { clearSession } from "../../../common/utils";
|
||||||
import LicenseIcon from "../../../icons/LicenseIcon";
|
import LicenseIcon from "../../../icons/LicenseIcon";
|
||||||
import LogoutIcon from "../../../icons/LogoutIcon";
|
import LogoutIcon from "../../../icons/LogoutIcon";
|
||||||
@@ -444,6 +445,21 @@ const Menu = ({ userLoggedIn, classes, pages, operatorMode }: IMenuProps) => {
|
|||||||
return null;
|
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 />
|
<Divider />
|
||||||
</Collapse>
|
</Collapse>
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
|
|||||||
Reference in New Issue
Block a user