QQQ-32: added booleans, cleaned up error handling, fixed infinite loop on unauthorized login, removed all the login buttons, removed redundant qClient functions

This commit is contained in:
Tim Chamberlain
2022-08-09 11:52:32 -05:00
parent c4b72c4b11
commit 7cb3c5ee88
12 changed files with 81 additions and 104 deletions

View File

@ -21,6 +21,7 @@ import {Alert} from "@mui/material";
import MDBox from "components/MDBox";
import MDTypography from "components/MDTypography";
import MDButton from "../../../components/MDButton";
import QClient from "qqq/utils/QClient";
// Declaring props types for EntityForm
interface Props
@ -30,7 +31,7 @@ interface Props
function EntityForm({id}: Props): JSX.Element
{
const qController = new QController("");
const qController = QClient.getInstance();
const {tableName} = useParams();
const [validations, setValidations] = useState({});

View File

@ -38,7 +38,6 @@ import {
} from "context";
// qqq
import AuthenticationButton from "qqq/components/buttons/AuthenticationButton";
// Declaring prop types for Navbar
interface Props
@ -159,14 +158,6 @@ function Navbar({absolute, light, isMini}: Props): JSX.Element
<MDInput label="Search here" />
</MDBox>
<MDBox color={light ? "white" : "inherit"}>
<AuthenticationButton />
{ /*
<Link to="/authentication/sign-in/basic">
<IconButton sx={navbarIconButton} size="small" disableRipple>
<Icon sx={iconsStyle}>account_circle</Icon>
</IconButton>
</Link>
*/ }
<IconButton
size="small"
disableRipple

View File

@ -66,6 +66,9 @@ class DynamicFormUtils
case QFieldType.BLOB:
fieldType = "file";
break;
case QFieldType.BOOLEAN:
fieldType = "checkbox";
break;
case QFieldType.TEXT:
case QFieldType.HTML:
case QFieldType.STRING: