permission update, routes, etc.

This commit is contained in:
2024-03-27 20:50:57 +01:00
parent a8f4c84f60
commit 50ae32595d
15 changed files with 131 additions and 69 deletions

View File

@@ -123,8 +123,8 @@ export function DataTable(props) {
{title ?
<h3>
{fetchData ?
<IconButton onClick={() => onFetchData(true)}>
<CachedIcon/>
<IconButton onClick={() => onFetchData(true)} title={L("general.reload")}>
<CachedIcon/>&nbsp;
</IconButton>
: <></>
}

View File

@@ -50,6 +50,7 @@ export default function Dialog(props) {
switch (input.type) {
case 'label':
delete inputProps.value;
inputElements.push(<span {...inputProps}>{input.value}</span>);
break;
case 'text':
@@ -57,11 +58,9 @@ export default function Dialog(props) {
inputElements.push(<TextField
{...inputProps}
type={input.type}
sx={{marginTop: 1}}
size={"small"} fullWidth={true}
key={"input-" + input.name}
value={inputData[input.name] || ""}
defaultValue={input.defaultValue || ""}
onChange={e => setInputData({ ...inputData, [input.name]: e.target.value })}
/>)
break;