mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 17:25:52 +01:00
feat(client/search): disable nesting depth in collection
This commit is contained in:
@@ -121,6 +121,7 @@ function CheckboxPropertyView({ note, property }: { note: FNote, property: Check
|
||||
function NumberPropertyView({ note, property }: { note: FNote, property: NumberProperty }) {
|
||||
//@ts-expect-error Interop with text box which takes in string values even for numbers.
|
||||
const [ value, setValue ] = useNoteLabel(note, property.bindToLabel);
|
||||
const disabled = property.disabled?.(note);
|
||||
|
||||
return (
|
||||
<LabelledEntry label={property.label}>
|
||||
@@ -129,6 +130,7 @@ function NumberPropertyView({ note, property }: { note: FNote, property: NumberP
|
||||
currentValue={value ?? ""} onChange={setValue}
|
||||
style={{ width: (property.width ?? 100) + "px" }}
|
||||
min={property.min ?? 0}
|
||||
disabled={disabled}
|
||||
/>
|
||||
</LabelledEntry>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user