Add a tip to help with NWFilter priorities

This commit is contained in:
Pierre HUBERT 2024-01-04 15:42:05 +01:00
parent 2649bfbd25
commit dcf6cdab9b
2 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,7 @@ export function NWFilterPriorityInput(p: {
p.onChange?.(v && v !== "" ? Number(v) : undefined);
}}
size={ServerApi.Config.constraints.nwfilter_priority}
helperText="A lower priority value is accessed before one with a higher value"
/>
);
}

View File

@ -16,6 +16,7 @@ export function TextInput(p: {
maxRows?: number;
type?: React.HTMLInputTypeAttribute;
style?: React.CSSProperties;
helperText?: string;
}): React.ReactElement {
if (!p.editable && (p.value ?? "") === "") return <></>;
@ -54,7 +55,7 @@ export function TextInput(p: {
minRows={p.minRows}
maxRows={p.maxRows}
error={valueError !== undefined}
helperText={valueError}
helperText={valueError ?? p.helperText}
/>
);
}