Add a tip to help with NWFilter priorities
This commit is contained in:
parent
2649bfbd25
commit
dcf6cdab9b
@ -16,6 +16,7 @@ export function NWFilterPriorityInput(p: {
|
|||||||
p.onChange?.(v && v !== "" ? Number(v) : undefined);
|
p.onChange?.(v && v !== "" ? Number(v) : undefined);
|
||||||
}}
|
}}
|
||||||
size={ServerApi.Config.constraints.nwfilter_priority}
|
size={ServerApi.Config.constraints.nwfilter_priority}
|
||||||
|
helperText="A lower priority value is accessed before one with a higher value"
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ export function TextInput(p: {
|
|||||||
maxRows?: number;
|
maxRows?: number;
|
||||||
type?: React.HTMLInputTypeAttribute;
|
type?: React.HTMLInputTypeAttribute;
|
||||||
style?: React.CSSProperties;
|
style?: React.CSSProperties;
|
||||||
|
helperText?: string;
|
||||||
}): React.ReactElement {
|
}): React.ReactElement {
|
||||||
if (!p.editable && (p.value ?? "") === "") return <></>;
|
if (!p.editable && (p.value ?? "") === "") return <></>;
|
||||||
|
|
||||||
@ -54,7 +55,7 @@ export function TextInput(p: {
|
|||||||
minRows={p.minRows}
|
minRows={p.minRows}
|
||||||
maxRows={p.maxRows}
|
maxRows={p.maxRows}
|
||||||
error={valueError !== undefined}
|
error={valueError !== undefined}
|
||||||
helperText={valueError}
|
helperText={valueError ?? p.helperText}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user