Made Liquid formatting work with loops and added extra auto-fixes

This commit is contained in:
frikky
2022-01-15 03:18:08 +01:00
parent c406b4453e
commit e9c84bb858
5 changed files with 56 additions and 10 deletions
+8 -4
View File
@@ -10,7 +10,9 @@ import {
Paper,
Typography,
} from "@material-ui/core";
import { useTheme } from "@material-ui/core/styles";
import { useNavigate } from "react-router-dom";
const hrefStyle = {
color: "white",
@@ -31,6 +33,7 @@ const useStyles = makeStyles({
const LoginDialog = (props) => {
const theme = useTheme();
let navigate = useNavigate();
const {
globalUrl,
@@ -62,7 +65,8 @@ const LoginDialog = (props) => {
};
if (isLoggedIn === true) {
window.location.pathname = "/workflows";
//window.location.pathname = "/workflows";
navigate("/workflows")
}
const checkAdmin = () => {
@@ -99,7 +103,7 @@ const LoginDialog = (props) => {
}
if (responseJson.reason === "stay") {
window.location.pathname = "/adminsetup";
navigate("/adminsetup")
}
}
})
@@ -176,7 +180,7 @@ const LoginDialog = (props) => {
setIsLoggedIn(true);
window.location.pathname = "/workflows";
navigate("/workflows")
}
})
)
@@ -468,7 +472,7 @@ const LoginDialog = (props) => {
style={{ flex: "1", marginTop: 5 }}
onClick={() => {
console.log("CLICK");
window.location = ssoUrl;
navigate(ssoUrl)
}}
>
Use SSO